Class: MagayaAPI::Config
- Inherits:
-
Object
- Object
- MagayaAPI::Config
- Defined in:
- lib/magaya_api.rb
Instance Attribute Summary collapse
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#password ⇒ Object
Returns the value of attribute password.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_level ⇒ Object
Returns the value of attribute log_level.
16 17 18 |
# File 'lib/magaya_api.rb', line 16 def log_level @log_level end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
16 17 18 |
# File 'lib/magaya_api.rb', line 16 def open_timeout @open_timeout end |
#password ⇒ Object
Returns the value of attribute password.
16 17 18 |
# File 'lib/magaya_api.rb', line 16 def password @password end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
16 17 18 |
# File 'lib/magaya_api.rb', line 16 def read_timeout @read_timeout end |
#url ⇒ Object
Returns the value of attribute url.
16 17 18 |
# File 'lib/magaya_api.rb', line 16 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
16 17 18 |
# File 'lib/magaya_api.rb', line 16 def username @username end |