Class: Gecko::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/gecko/configurator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

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_urlObject

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_builderObject (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_agentObject

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