Class: FantasticRobot::Configuration
- Inherits:
-
Object
- Object
- FantasticRobot::Configuration
- Defined in:
- lib/fantastic_robot/configuration.rb
Constant Summary collapse
- VALID_DELIVERY_METHODS =
[:polling, :webhook]
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#delivery_method ⇒ Object
Returns the value of attribute delivery_method.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 |
# File 'lib/fantastic_robot/configuration.rb', line 11 def initialize @delivery_method = :polling end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/fantastic_robot/configuration.rb', line 5 def api_key @api_key end |
#callback_url ⇒ Object
Returns the value of attribute callback_url.
7 8 9 |
# File 'lib/fantastic_robot/configuration.rb', line 7 def callback_url @callback_url end |
#delivery_method ⇒ Object
Returns the value of attribute delivery_method.
6 7 8 |
# File 'lib/fantastic_robot/configuration.rb', line 6 def delivery_method @delivery_method end |