Class: Deltacloud::Provider

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

Instance Attribute Summary collapse

Attributes inherited from BaseModel

#description

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.



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

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#urlObject

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