Class: FantasticRobot::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/fantastic_robot/configuration.rb

Constant Summary collapse

VALID_DELIVERY_METHODS =
[:polling, :webhook]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_urlObject

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_methodObject

Returns the value of attribute delivery_method.



6
7
8
# File 'lib/fantastic_robot/configuration.rb', line 6

def delivery_method
  @delivery_method
end