Class: RHC::Rest::EnvironmentVariable

Inherits:
Base show all
Defined in:
lib/rhc/rest/environment_variable.rb

Instance Method Summary collapse

Methods inherited from Base

#add_message, #has_param?, #initialize, #link_href, #links, #rest_method, #supports?

Methods included from AttributesClass

#define_attr, #model_name

Methods included from Attributes

#attribute, #attributes, #attributes=, #clear_attribute

Constructor Details

This class inherits a constructor from RHC::Rest::Base

Instance Method Details

#<=>(other) ⇒ Object



10
11
12
# File 'lib/rhc/rest/environment_variable.rb', line 10

def <=>(other)
  name <=> other.name
end

#to_hashObject



6
7
8
# File 'lib/rhc/rest/environment_variable.rb', line 6

def to_hash
  { :name => name, :value => value }
end