Class: Brawlhalla::API::Configuration
- Inherits:
-
Object
- Object
- Brawlhalla::API::Configuration
- Defined in:
- lib/brawlhalla/api/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
- #debug? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 |
# File 'lib/brawlhalla/api/configuration.rb', line 8 def initialize @api_key = '' @debug = false end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/brawlhalla/api/configuration.rb', line 6 def api_key @api_key end |
#debug ⇒ Object
Returns the value of attribute debug.
6 7 8 |
# File 'lib/brawlhalla/api/configuration.rb', line 6 def debug @debug end |
Instance Method Details
#debug? ⇒ Boolean
13 14 15 |
# File 'lib/brawlhalla/api/configuration.rb', line 13 def debug? @debug || false end |