# File lib/openshift-origin-common/models/model.rb, line 24 def attribute(name) instance_variable_get("@#{name}") end
# 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
# 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
Generated with the Darkfish Rdoc Generator 2.