Class: Deltacloud::Provider
- Defined in:
- lib/deltacloud/models/provider.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from BaseModel
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.
24 25 26 |
# File 'lib/deltacloud/models/provider.rb', line 24 def initialize(opts={}) super(opts) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/deltacloud/models/provider.rb', line 22 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
21 22 23 |
# File 'lib/deltacloud/models/provider.rb', line 21 def url @url end |
Instance Method Details
#to_hash(context) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/deltacloud/models/provider.rb', line 28 def to_hash(context) { :id => self.id, :name => name, :url => url } end |