Class: Gecko::Configurator
- Inherits:
-
Object
- Object
- Gecko::Configurator
- Defined in:
- lib/gecko/configurator.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_push_url ⇒ Object
Returns the value of attribute api_push_url.
-
#connection_builder ⇒ Object
readonly
Returns the value of attribute connection_builder.
-
#http_user_agent ⇒ Object
Returns the value of attribute http_user_agent.
Instance Method Summary collapse
-
#http_builder(&block) ⇒ Object
Block invoked with Faraday builder when creating a connection.
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/gecko/configurator.rb', line 3 def api_key @api_key end |
#api_push_url ⇒ Object
Returns the value of attribute api_push_url.
3 4 5 |
# File 'lib/gecko/configurator.rb', line 3 def api_push_url @api_push_url end |
#connection_builder ⇒ Object (readonly)
Returns the value of attribute connection_builder.
4 5 6 |
# File 'lib/gecko/configurator.rb', line 4 def connection_builder @connection_builder end |
#http_user_agent ⇒ Object
Returns the value of attribute http_user_agent.
3 4 5 |
# File 'lib/gecko/configurator.rb', line 3 def http_user_agent @http_user_agent end |
Instance Method Details
#http_builder(&block) ⇒ Object
Block invoked with Faraday builder when creating a connection
7 8 9 |
# File 'lib/gecko/configurator.rb', line 7 def http_builder(&block) @connection_builder = block || nil end |