Class: Ucb::Hcm::Api

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
lib/ucb/hcm/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Request

#client, #get, #post, #respond

Constructor Details

#initialize(options = {}) ⇒ Api

Returns a new instance of Api.



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/ucb/hcm/api.rb', line 13

def initialize(options={})
  # Merge the config values from the module and those passed
  # to the client.
  merged_options = Ucb::Hcm.options.merge(options)

  # Copy the merged values to this client and ignore those
  # not part of our configuration
  Configuration::VALID_CONFIG_KEYS.each do |key|
    send("#{key}=", merged_options[key])
  end
end