Class/Module Index [+]

Quicksearch

RHC::Rest::AttributesClass

Public Instance Methods

define_attr(*names) click to toggle source
# File lib/rhc/rest/attributes.rb, line 21
def define_attr(*names)
  names.map(&:to_sym).each do |name|
    define_method(name) do
      attribute(name)
    end
    define_method("#{name}=") do |value|
      instance_variable_set(:"@#{name}", nil)
      attributes[name.to_s] = value
    end
  end
end
model_name() click to toggle source
# File lib/rhc/rest/attributes.rb, line 33
def model_name
  name.split("::").last
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.