Sha256: 0961fc65e4052d783cad2ab70c400f79577b919dba51ae8728118f4ee60894f9

Contents?: true

Size: 507 Bytes

Versions: 94

Compression:

Stored size: 507 Bytes

Contents

require 'fog/core/model'

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

        attribute :description
        attribute :enabled
        attribute :name

        def to_s
          self.name
        end

        def usage(start_date, end_date)
          requires :id
          service.get_usage(self.id, start_date, end_date).body['tenant_usage']
        end
      end # class Tenant
    end # class OpenStack
  end # module Compute
end # module Fog

Version data entries

94 entries across 94 versions & 10 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/models/compute/tenant.rb
fog-1.32.0 lib/fog/openstack/models/compute/tenant.rb
fog-1.31.0 lib/fog/openstack/models/compute/tenant.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/openstack/models/compute/tenant.rb
fog-1.30.0 lib/fog/openstack/models/compute/tenant.rb
fog-1.29.0 lib/fog/openstack/models/compute/tenant.rb
fog-1.28.0 lib/fog/openstack/models/compute/tenant.rb
fog-1.27.0 lib/fog/openstack/models/compute/tenant.rb
fog-1.26.0 lib/fog/openstack/models/compute/tenant.rb
fog-1.25.0 lib/fog/openstack/models/compute/tenant.rb
nsidc-fog-1.24.1 lib/fog/openstack/models/compute/tenant.rb
fog-1.24.0 lib/fog/openstack/models/compute/tenant.rb
ns-fog-1.22.11 lib/fog/openstack/models/compute/tenant.rb
ns-fog-1.22.10 lib/fog/openstack/models/compute/tenant.rb
ns-fog-1.22.9 lib/fog/openstack/models/compute/tenant.rb
ns-fog-1.22.8 lib/fog/openstack/models/compute/tenant.rb
ns-fog-1.22.7 lib/fog/openstack/models/compute/tenant.rb
ns-fog-1.22.6 lib/fog/openstack/models/compute/tenant.rb
fog-1.23.0 lib/fog/openstack/models/compute/tenant.rb
ns-fog-1.22.4 lib/fog/openstack/models/compute/tenant.rb