Class: Pairzone::Api::Base
- Inherits:
-
Object
- Object
- Pairzone::Api::Base
- Includes:
- PartyResource
- Defined in:
- lib/pairzone/api/base.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Base
constructor
A new instance of Base.
Constructor Details
Class Method Details
.connect_to(host, options) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/pairzone/api/base.rb', line 14 def self.connect_to(host, ) params = { base_uri: host, headers: { 'Accept' => 'application/json', 'User-agent' => 'pairzone-gem/' + VERSION } }.merge() Logger.debug("Connecting to API server with params: #{params.inspect}") PartyResource::Connector.add(:pairzone, params) end |