Class: Merge::AsyncClient
- Inherits:
-
Object
- Object
- Merge::AsyncClient
- Defined in:
- lib/merge_ruby_client.rb
Instance Attribute Summary collapse
- #accounting ⇒ Merge::Accounting::AsyncClient readonly
- #ats ⇒ Merge::Ats::AsyncClient readonly
- #crm ⇒ Merge::Crm::AsyncClient readonly
- #filestorage ⇒ Merge::Filestorage::AsyncClient readonly
- #hris ⇒ Merge::Hris::AsyncClient readonly
- #ticketing ⇒ Merge::Ticketing::AsyncClient 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::AsyncClient
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/merge_ruby_client.rb', line 75 def initialize(api_key:, base_url: nil, environment: Merge::Environment::PRODUCTION, max_retries: nil, timeout_in_seconds: nil, account_token: nil) @async_request_client = Merge::AsyncRequestClient.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::AsyncClient.new(request_client: @async_request_client) @crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client) @filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client) @hris = Merge::Hris::AsyncClient.new(request_client: @async_request_client) @ticketing = Merge::Ticketing::AsyncClient.new(request_client: @async_request_client) @accounting = Merge::Accounting::AsyncClient.new(request_client: @async_request_client) end |
Instance Attribute Details
#accounting ⇒ Merge::Accounting::AsyncClient (readonly)
66 67 68 |
# File 'lib/merge_ruby_client.rb', line 66 def accounting @accounting end |
#ats ⇒ Merge::Ats::AsyncClient (readonly)
56 57 58 |
# File 'lib/merge_ruby_client.rb', line 56 def ats @ats end |
#crm ⇒ Merge::Crm::AsyncClient (readonly)
58 59 60 |
# File 'lib/merge_ruby_client.rb', line 58 def crm @crm end |
#filestorage ⇒ Merge::Filestorage::AsyncClient (readonly)
60 61 62 |
# File 'lib/merge_ruby_client.rb', line 60 def filestorage @filestorage end |
#hris ⇒ Merge::Hris::AsyncClient (readonly)
62 63 64 |
# File 'lib/merge_ruby_client.rb', line 62 def hris @hris end |
#ticketing ⇒ Merge::Ticketing::AsyncClient (readonly)
64 65 66 |
# File 'lib/merge_ruby_client.rb', line 64 def ticketing @ticketing end |