Class: Paladins::Configuration
- Inherits:
-
Object
- Object
- Paladins::Configuration
- Defined in:
- lib/paladins/configuration.rb
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#auth_key ⇒ Object
Returns the value of attribute auth_key.
-
#dev_id ⇒ Object
Returns the value of attribute dev_id.
-
#response_format ⇒ Object
Returns the value of attribute response_format.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/paladins/configuration.rb', line 5 def initialize @api_url = "http://api.paladins.com/paladinsapi.svc" @dev_id = ENV['PALADINS_DEV_ID'] || nil @auth_key = ENV['PALADINS_AUTH_KEY'] || nil @response_format = 'Json' end |
Instance Attribute Details
#api_url ⇒ Object
Returns the value of attribute api_url.
3 4 5 |
# File 'lib/paladins/configuration.rb', line 3 def api_url @api_url end |
#auth_key ⇒ Object
Returns the value of attribute auth_key.
3 4 5 |
# File 'lib/paladins/configuration.rb', line 3 def auth_key @auth_key end |
#dev_id ⇒ Object
Returns the value of attribute dev_id.
3 4 5 |
# File 'lib/paladins/configuration.rb', line 3 def dev_id @dev_id end |
#response_format ⇒ Object
Returns the value of attribute response_format.
3 4 5 |
# File 'lib/paladins/configuration.rb', line 3 def response_format @response_format end |