Sha256: f5415b04296c77f18be88933b2d25a8586e18a3ad12df627968b2134789bc3bd
Contents?: true
Size: 375 Bytes
Versions: 2
Compression:
Stored size: 375 Bytes
Contents
module Datacentred module Model class Usage < OpenStruct def initialize(params) params.delete("links") # params["last_updated_at"] = Time.parse params["last_updated_at"] super(params) end def self.show(year, month) Request::Usage.show(year, month)["projects"].map{ |project| new(project) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datacentred-0.1.1pre | lib/datacentred/model/usage.rb |
datacentred-0.1.0pre | lib/datacentred/model/usage.rb |