Class: Invofox::LoadBatch

Inherits:
Resource show all
Defined in:
lib/invofox/resources/load_batch.rb

Class Method Summary collapse

Methods inherited from Resource

fields_information, #fields_information, has_fields, #initialize

Constructor Details

This class inherits a constructor from Invofox::Resource

Class Method Details

.get(id:) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/invofox/resources/load_batch.rb', line 12

def get(id:)
  Invofox.api_call(
    clazz:  self,
    method: :get,
    path:   "/loadBatches/#{id}"
  ) do |response_body|
    response_body['result']
  end
end