Class: MagayaAPI::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



18
19
20
21
22
23
# File 'lib/magaya_api.rb', line 18

def initialize
  @log_level = :debug
  @username = ENV['MAGAYA_API_USERNAME'] || ''
  @password = ENV['MAGAYA_API_PASSWORD'] || ''
  @url = ENV['MAGAYA_API_URL'] || ''
end

Instance Attribute Details

#log_levelObject

Returns the value of attribute log_level.



16
17
18
# File 'lib/magaya_api.rb', line 16

def log_level
  @log_level
end

#open_timeoutObject

Returns the value of attribute open_timeout.



16
17
18
# File 'lib/magaya_api.rb', line 16

def open_timeout
  @open_timeout
end

#passwordObject

Returns the value of attribute password.



16
17
18
# File 'lib/magaya_api.rb', line 16

def password
  @password
end

#read_timeoutObject

Returns the value of attribute read_timeout.



16
17
18
# File 'lib/magaya_api.rb', line 16

def read_timeout
  @read_timeout
end

#urlObject

Returns the value of attribute url.



16
17
18
# File 'lib/magaya_api.rb', line 16

def url
  @url
end

#usernameObject

Returns the value of attribute username.



16
17
18
# File 'lib/magaya_api.rb', line 16

def username
  @username
end