Class: Whacamole::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/whacamole/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

Returns the value of attribute api_token.



3
4
5
# File 'lib/whacamole/config.rb', line 3

def api_token
  @api_token
end

#app_nameObject

Returns the value of attribute app_name.



3
4
5
# File 'lib/whacamole/config.rb', line 3

def app_name
  @app_name
end

#event_handlerObject

Returns the value of attribute event_handler.



3
4
5
# File 'lib/whacamole/config.rb', line 3

def event_handler
  @event_handler
end