Class: Pincers::Chenso::Factory

Inherits:
Pincers::Core::BaseFactory show all
Defined in:
lib/pincers/chenso/factory.rb

Instance Method Summary collapse

Methods inherited from Pincers::Core::BaseFactory

#initialize, new_context, #new_context

Constructor Details

This class inherits a constructor from Pincers::Core::BaseFactory

Instance Method Details

#load_backend(_options) ⇒ Object



8
9
10
11
12
# File 'lib/pincers/chenso/factory.rb', line 8

def load_backend(_options)
  _options[:headers] = default_headers(_options).merge! _options.fetch(:headers, {})
  client = Pincers::Http::Client.build_from_options _options
  Pincers::Chenso::Backend.new client
end