Sha256: 941f67cc3b2dd786ea50baea3107be06b4985ab8ee9d0e34ff43c88d1d883bbb
Contents?: true
Size: 658 Bytes
Versions: 4
Compression:
Stored size: 658 Bytes
Contents
module Yao::Resources class Meter < Base friendly_attributes :meter_id, :name, :user_id, :resource_id, :project_id, :source, :type, :unit def id meter_id end def resource @resource ||= Yao::Resource.get(resource_id) end def tenant @tenant ||= Yao::User.get(project_id) end def user @user ||= Yao::User.get(user_id) end self.service = "metering" self.api_version = "v2" self.resources_name = "meters" class << self private def resource_from_json(json) json end def resources_from_json(json) json end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yao-0.2.2 | lib/yao/resources/meter.rb |
yao-0.2.1 | lib/yao/resources/meter.rb |
yao-0.2.0 | lib/yao/resources/meter.rb |
yao-0.2.0.rc1 | lib/yao/resources/meter.rb |