Sha256: 7c027a8eed0c69010fa83ca44f5e93da0ce28d9d0e96d8d62d65d5b076530913

Contents?: true

Size: 442 Bytes

Versions: 7

Compression:

Stored size: 442 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Layout < Fog::Ecloud::Model
        identity :href

        attribute :type, :aliases => :Type
        attribute :other_links, :aliases => :Links

        def rows
          @rows ||= self.service.rows(:href => href)
        end

        def id
          href.scan(/\d+/)[0]
        end

        def reload
          @rows = nil
          super
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/layout.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/layout.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/layout.rb
fog-ecloud-0.3.0 lib/fog/compute/ecloud/models/layout.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/models/layout.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/models/layout.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/models/layout.rb