Sha256: 28ba11c02997ee8b4c6f4ff9a15aabda3db31dbb413d28a0e41413d7cf57ca83

Contents?: true

Size: 265 Bytes

Versions: 5

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

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