module 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