Class: Hey::Dispatcher
- Inherits:
-
Object
- Object
- Hey::Dispatcher
- Defined in:
- lib/hey/dispatcher.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the API token to be used when making requests.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Dispatcher
constructor
Optionally accepts a hash containing an API token.
Constructor Details
#initialize(options = {}) ⇒ Dispatcher
Optionally accepts a hash containing an API token. Defaults to the API token set on the Hey module.
Hey::Yo.new api_token: '3858f62230ac3c915f300c664312c63f'
14 15 16 |
# File 'lib/hey/dispatcher.rb', line 14 def initialize = {} @api_token = [:api_token] end |
Instance Attribute Details
#api_token ⇒ Object
Returns the API token to be used when making requests. This will either be the api_token set on initialization or the token set on the Hey module itself.
8 9 10 |
# File 'lib/hey/dispatcher.rb', line 8 def api_token @api_token end |