Class: Productive::BaseAccount

Inherits:
Base
  • Object
show all
Defined in:
lib/productive/resources/base_account.rb

Constant Summary

Constants inherited from Base

Productive::Base::PER_PAGE

Class Method Summary collapse

Methods inherited from Base

connection_object, connection_object=, connection_options, connection_options=, paginator_setup, query_builder_setup, reset_connection, setup, site, site=, site_setup

Class Method Details

.connection_options_setup(config) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/productive/resources/base_account.rb', line 3

def self.connection_options_setup(config)
  if config.connection_options[:headers].nil?
    config.connection_options[:headers] = { 'X-Organization-Id' => config. }
  else
    config.connection_options[:headers]['X-Organization-Id'] = config..to_s
  end

  super(config)
end