Module: DynamoRecord::Fields

Extended by:
ActiveSupport::Concern
Included in:
Document
Defined in:
lib/dynamo_record/fields.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#read_attribute(name) ⇒ Object



101
102
103
# File 'lib/dynamo_record/fields.rb', line 101

def read_attribute(name)
  attributes[name.to_sym]
end

#write_attribute(name, value) ⇒ Object



97
98
99
# File 'lib/dynamo_record/fields.rb', line 97

def write_attribute(name, value)
  attributes[name.to_sym] = self.class.undump_field(value, self.class.attributes[name.to_sym])
end