Class: Joyent::Datacenter
- Inherits:
-
Object
- Object
- Joyent::Datacenter
- Defined in:
- lib/joyent/datacenter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name, url) ⇒ Datacenter
constructor
A new instance of Datacenter.
Constructor Details
#initialize(name, url) ⇒ Datacenter
Returns a new instance of Datacenter.
5 6 7 8 |
# File 'lib/joyent/datacenter.rb', line 5 def initialize(name, url) @name = name @url = url end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/joyent/datacenter.rb', line 3 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/joyent/datacenter.rb', line 3 def url @url end |