class ModelWithWeirdNamesAttributes

Public Instance Methods

attributes() click to toggle source
# File activemodel/test/cases/attribute_methods_test.rb, line 71
def attributes
  { 'a?b': "value of a?b" }
end

Private Instance Methods

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