Method: PureForm::Base#attributes

Defined in:
lib/pure_form/base.rb

#attributesObject



77
78
79
80
81
# File 'lib/pure_form/base.rb', line 77

def attributes
  self.class.defined_attributes.each_with_object({}) do |(name, _), attributes|
    attributes[name] = public_send(name)
  end.with_indifferent_access
end