Sha256: fd7c2ae73d568a33f412d5d5e1262316043666ab58adec4d001373826b2b4f43
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
module SuperLanding module API module Response class StatisticItems < Base attr_accessor :items delegate :length, to: :items delegate :each, to: :items delegate :each_with_index, to: :items delegate :map, to: :items Item = Struct.new(:code, :title, :owe_qty, :day3, :day7, :day30, :day3_avg, :day7_avg, :day30_avg) def initialize(*) super @items = auth? ? data.map { |item| Item.new(item.values) } : [] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superlanding-0.1.0 | lib/super_landing/api/response/statistic_items.rb |