class ModelWithAttributesWithSpaces

Public Instance Methods

attributes() click to toggle source
# File activemodel/test/cases/attribute_methods_test.rb, line 52
def attributes
  { 'foo bar': "value of foo bar" }
end

Private Instance Methods

attribute(name) click to toggle source
# File activemodel/test/cases/attribute_methods_test.rb, line 57
def attribute(name)
  attributes[name.to_sym]
end