Sha256: cc37a0dc0717fbea71af89e79f9f5496c3a66b47e305d7f7f534d6cd36315ac9

Contents?: true

Size: 457 Bytes

Versions: 25

Compression:

Stored size: 457 Bytes

Contents

require 'fog/openstack/models/model'

module Fog
  module Compute
    class OpenStack
      class Tenant < Fog::OpenStack::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

25 entries across 23 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.10 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.1.30 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.1.29 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.9 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.1.28 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.8 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.7 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.6 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.5 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.4 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.3 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.2 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.3.0 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.2.4 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.2.3 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.2.2 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.2.1 lib/fog/compute/openstack/models/tenant.rb
fog-openstack-0.2.0 lib/fog/compute/openstack/models/tenant.rb
fog-zj-0.1.28 lib/fog/compute/openstack/models/tenant.rb