Sha256: 5a5ac7c0c4f0f6fc2fcc83c31f09f3469983bbb8b90adf5f869c02b51777702d

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

class Invofox::LoadBatch < Invofox::Resource
  has_fields company:   :string,
             creator:   :string,
             creation:  :time,
             lastLoad:  :time,
             end:       :time,
             documents: :array,
             info:      :hash,
             state:     :string

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
invofox-api-ruby-0.1.2 lib/invofox/resources/load_batch.rb
invofox-api-ruby-0.1.1 lib/invofox/resources/load_batch.rb
invofox-api-ruby-0.1.0 lib/invofox/resources/load_batch.rb