Class: Whacamole::Config
- Inherits:
-
Object
- Object
- Whacamole::Config
- Defined in:
- lib/whacamole/config.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#event_handler ⇒ Object
Returns the value of attribute event_handler.
Instance Method Summary collapse
-
#initialize(app_name) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(app_name) ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/whacamole/config.rb', line 5 def initialize(app_name) self.app_name = app_name self.event_handler ||= lambda { |e| puts e.inspect.to_s } end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
3 4 5 |
# File 'lib/whacamole/config.rb', line 3 def api_token @api_token end |
#app_name ⇒ Object
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/whacamole/config.rb', line 3 def app_name @app_name end |
#event_handler ⇒ Object
Returns the value of attribute event_handler.
3 4 5 |
# File 'lib/whacamole/config.rb', line 3 def event_handler @event_handler end |