Class: Provider
- 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
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Provider
constructor
A new instance of Provider.
- #to_hash(context) ⇒ Object
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
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/deltacloud/models/provider.rb', line 21 def name @name end |
#url ⇒ Object
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 |