Class: Joyent::Datacenter

Inherits:
Object
  • Object
show all
Defined in:
lib/joyent/datacenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/joyent/datacenter.rb', line 3

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/joyent/datacenter.rb', line 3

def url
  @url
end