Class/Module Index [+]

Quicksearch

RHC::Rest::Attributes

Public Instance Methods

attribute(name) click to toggle source
# File lib/rhc/rest/attributes.rb, line 10
def attribute(name)
  instance_variable_get("@#{name}") || attributes[name.to_s]
end
attributes() click to toggle source
# File lib/rhc/rest/attributes.rb, line 2
def attributes
  @attributes
end
attributes=(attr=nil) click to toggle source
# File lib/rhc/rest/attributes.rb, line 6
def attributes=(attr=nil)
  @attributes = (attr || {}).stringify_keys!
end
clear_attribute(name) click to toggle source
# File lib/rhc/rest/attributes.rb, line 14
def clear_attribute(name)
  v = instance_variable_set("@#{name}", nil)
  attributes.delete(name.to_s) or v 
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.