Class: RaindropIo::Api::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/raindrop_io/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

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_uriObject

Returns the value of attribute base_uri.



33
34
35
# File 'lib/raindrop_io/api.rb', line 33

def base_uri
  @base_uri
end

#loggerObject

Returns the value of attribute logger.



34
35
36
# File 'lib/raindrop_io/api.rb', line 34

def logger
  @logger
end