class RHC::Rest::Region

Public Instance Methods

<=>(other) click to toggle source
# File lib/rhc/rest/region.rb, line 21
def <=>(other)
  return self.name <=> other.name
end
allow_selection?() click to toggle source
# File lib/rhc/rest/region.rb, line 9
def allow_selection?
  !!allow_selection
end
default?() click to toggle source
# File lib/rhc/rest/region.rb, line 5
def default?
  !!default
end
to_s() click to toggle source
# File lib/rhc/rest/region.rb, line 25
def to_s
  self.name
end
uuid() click to toggle source
# File lib/rhc/rest/region.rb, line 13
def uuid
  client.api_version_negotiated >= 1.6 ? attributes['id'] : attributes['uuid']
end
zones() click to toggle source
# File lib/rhc/rest/region.rb, line 17
def zones
  @zones ||= attributes['zones'].map{|z| z['name']}.sort
end