Sha256: bf74f25e4aaa58cbb4b573e045438c47f8901a821e4e845db78b2a429a3c34f1

Contents?: true

Size: 253 Bytes

Versions: 5

Compression:

Stored size: 253 Bytes

Contents

# frozen_string_literal: true

module MyTankInfo
  class TankRunoutResource < Resource
    def list(tank_id:)
      response = get_request("api/tanks/#{tank_id}/runout")
      Collection.from_response(response, type: TankRunoutRecord)
    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_runout.rb
my_tank_info-1.1.0 lib/my_tank_info/resources/tank_runout.rb
my_tank_info-1.0.2 lib/my_tank_info/resources/tank_runout.rb
my_tank_info-1.0.1 lib/my_tank_info/resources/tank_runout.rb
my_tank_info-1.0.0 lib/my_tank_info/resources/tank_runout.rb