Parent

Included Modules

OpenShift::Model

Public Instance Methods

attribute(name) click to toggle source
# File lib/openshift-origin-common/models/model.rb, line 24
def attribute(name)
  instance_variable_get("@#{name}")
end
attributes() click to toggle source
# File lib/openshift-origin-common/models/model.rb, line 15
def attributes
  a = {}
  self.instance_variable_names.each do |name|
    next if name == "@errors"
    a[name[1..-1]] = self.instance_variable_get(name)
  end
  a
end
to_xml(options = {}) click to toggle source
# File lib/openshift-origin-common/models/model.rb, line 28
def to_xml(options = {})
  to_xml_opts = {:skip_types => true}
  to_xml_opts.merge!(options.slice(:builder, :skip_instruct))
  to_xml_opts[:root] = options[:tag_name] || self.class.name.underscore.gsub("_","-")
  self.attributes.to_xml(to_xml_opts)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.