Class: Provider

Inherits:
BaseModel show all
Defined in:
lib/deltacloud/models/provider.rb

Overview

Model to store the hardware profile applied to an instance together with any instance-specific overrides

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

attr_accessor, attributes, #attributes, #id, #to_entity

Constructor Details

#initialize(opts = {}) ⇒ Provider

Returns a new instance of Provider.



23
24
25
# File 'lib/deltacloud/models/provider.rb', line 23

def initialize(opts={})
  super(opts)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/deltacloud/models/provider.rb', line 21

def name
  @name
end

#urlObject

Returns the value of attribute url.



20
21
22
# File 'lib/deltacloud/models/provider.rb', line 20

def url
  @url
end

Instance Method Details

#to_hash(context) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/deltacloud/models/provider.rb', line 27

def to_hash(context)
  {
    :id => self.id,
    :name => name,
    :url => url
  }
end