Class: RaindropIo::Api::Configuration
- Inherits:
-
Object
- Object
- RaindropIo::Api::Configuration
- Defined in:
- lib/raindrop_io/api.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
36 37 38 39 40 41 42 43 44 |
# File 'lib/raindrop_io/api.rb', line 36 def initialize @base_uri = "https://api.raindrop.io/rest/v1" @api_token = nil @logger = if defined?(Rails) Rails.logger else Logger.new($stdout) # the default ruby logger end end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
32 33 34 |
# File 'lib/raindrop_io/api.rb', line 32 def api_token @api_token end |
#base_uri ⇒ Object
Returns the value of attribute base_uri.
33 34 35 |
# File 'lib/raindrop_io/api.rb', line 33 def base_uri @base_uri end |
#logger ⇒ Object
Returns the value of attribute logger.
34 35 36 |
# File 'lib/raindrop_io/api.rb', line 34 def logger @logger end |