Module: MassiveRecord::ORM::AttributeMethods::Read
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/massive_record/orm/attribute_methods/read.rb
Instance Method Summary collapse
Instance Method Details
#read_attribute(attr_name) ⇒ Object
11 12 13 |
# File 'lib/massive_record/orm/attribute_methods/read.rb', line 11 def read_attribute(attr_name) attributes_schema[attr_name].nil? ? @attributes[attr_name.to_s] : attributes_schema[attr_name].decode(@attributes[attr_name.to_s]) end |