Class: Paladins::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_urlObject

Returns the value of attribute api_url.



3
4
5
# File 'lib/paladins/configuration.rb', line 3

def api_url
  @api_url
end

#auth_keyObject

Returns the value of attribute auth_key.



3
4
5
# File 'lib/paladins/configuration.rb', line 3

def auth_key
  @auth_key
end

#dev_idObject

Returns the value of attribute dev_id.



3
4
5
# File 'lib/paladins/configuration.rb', line 3

def dev_id
  @dev_id
end

#response_formatObject

Returns the value of attribute response_format.



3
4
5
# File 'lib/paladins/configuration.rb', line 3

def response_format
  @response_format
end