Sha256: 133093f74761571067978bccf832b5d23434479bea99ee7f643610e7f5a0f128

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

require 'fog/huaweicloud/models/model'

module Fog
  module Compute
    class HuaweiCloud
      class Tenant < Fog::HuaweiCloud::Model
        identity :id

        attribute :description
        attribute :enabled
        attribute :name

        def to_s
          name
        end

        def usage(start_date, end_date)
          requires :id
          service.get_usage(id, start_date, end_date).body['tenant_usage']
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/compute/huaweicloud/models/tenant.rb
fog-huaweicloud-0.0.2 lib/fog/compute/huaweicloud/models/tenant.rb
fog-huaweicloud-0.1.3 lib/fog/compute/huaweicloud/models/tenant.rb
fog-huaweicloud-0.1.2 lib/fog/compute/huaweicloud/models/tenant.rb