Class: Merge::Client
- Inherits:
-
Object
- Object
- Merge::Client
- Defined in:
- lib/merge_ruby_client.rb
Instance Attribute Summary collapse
- #accounting ⇒ Merge::Accounting::Client readonly
- #ats ⇒ Merge::Ats::Client readonly
- #crm ⇒ Merge::Crm::Client readonly
- #filestorage ⇒ Merge::Filestorage::Client readonly
- #hris ⇒ Merge::Hris::Client readonly
- #ticketing ⇒ Merge::Ticketing::Client readonly
Instance Method Summary collapse
Constructor Details
#initialize(api_key:, base_url: nil, environment: Merge::Environment::PRODUCTION, max_retries: nil, timeout_in_seconds: nil, account_token: nil) ⇒ Merge::Client
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/merge_ruby_client.rb', line 35 def initialize(api_key:, base_url: nil, environment: Merge::Environment::PRODUCTION, max_retries: nil, timeout_in_seconds: nil, account_token: nil) @request_client = Merge::RequestClient.new( base_url: base_url, environment: environment, max_retries: max_retries, timeout_in_seconds: timeout_in_seconds, api_key: api_key, account_token: account_token ) @ats = Merge::Ats::Client.new(request_client: @request_client) @crm = Merge::Crm::Client.new(request_client: @request_client) @filestorage = Merge::Filestorage::Client.new(request_client: @request_client) @hris = Merge::Hris::Client.new(request_client: @request_client) @ticketing = Merge::Ticketing::Client.new(request_client: @request_client) @accounting = Merge::Accounting::Client.new(request_client: @request_client) end |
Instance Attribute Details
#accounting ⇒ Merge::Accounting::Client (readonly)
26 27 28 |
# File 'lib/merge_ruby_client.rb', line 26 def accounting @accounting end |
#ats ⇒ Merge::Ats::Client (readonly)
16 17 18 |
# File 'lib/merge_ruby_client.rb', line 16 def ats @ats end |
#crm ⇒ Merge::Crm::Client (readonly)
18 19 20 |
# File 'lib/merge_ruby_client.rb', line 18 def crm @crm end |
#filestorage ⇒ Merge::Filestorage::Client (readonly)
20 21 22 |
# File 'lib/merge_ruby_client.rb', line 20 def filestorage @filestorage end |
#hris ⇒ Merge::Hris::Client (readonly)
22 23 24 |
# File 'lib/merge_ruby_client.rb', line 22 def hris @hris end |
#ticketing ⇒ Merge::Ticketing::Client (readonly)
24 25 26 |
# File 'lib/merge_ruby_client.rb', line 24 def ticketing @ticketing end |