Sha256: 2cc0195d460ca8366cc9527d5709918ba208585e135d6016e799fcd64d054371

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

module MyTankInfo
  class TankInventoryResource < Resource
    def list(tank_id:, **params)
      response = get_request("api/tanks/#{tank_id}/inventory", params: params)
      Collection.from_response(response, type: TankInventoryRecord)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
my_tank_info-1.1.1 lib/my_tank_info/resources/tank_inventory.rb
my_tank_info-1.1.0 lib/my_tank_info/resources/tank_inventory.rb
my_tank_info-1.0.2 lib/my_tank_info/resources/tank_inventory.rb
my_tank_info-1.0.1 lib/my_tank_info/resources/tank_inventory.rb
my_tank_info-1.0.0 lib/my_tank_info/resources/tank_inventory.rb