Class: Hey::Dispatcher
- Inherits:
-
Object
- Object
- Hey::Dispatcher
- Defined in:
- lib/hey/dispatcher.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_token ⇒ Object
(Optional) Should be set if an API token hasn’t be set on the Hey module.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Dispatcher
constructor
Optionally accepts a hash containing an API token.
Constructor Details
#initialize(options = {}) ⇒ Dispatcher
15 16 17 |
# File 'lib/hey/dispatcher.rb', line 15 def initialize = {} @api_token = [:api_token] || Hey.api_token end |
Instance Attribute Details
#api_token ⇒ Object
(Optional) Should be set if an API token hasn’t be set on the Hey module.
9 10 11 |
# File 'lib/hey/dispatcher.rb', line 9 def api_token @api_token end |