Module: Dynamoid::Attributes
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#attributes ⇒ Object
(also: #raw_attributes)
Returns the value of attribute attributes.
Instance Method Summary collapse
- #read_attribute(name) ⇒ Object (also: #[])
- #write_attribute(name, value) ⇒ Object (also: #[]=)
Instance Attribute Details
#attributes ⇒ Object Also known as: raw_attributes
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/dynamoid/attributes.rb', line 7 def attributes @attributes end |
Instance Method Details
#read_attribute(name) ⇒ Object Also known as: []
15 16 17 |
# File 'lib/dynamoid/attributes.rb', line 15 def read_attribute(name) attributes[name.to_sym] end |
#write_attribute(name, value) ⇒ Object Also known as: []=
10 11 12 |
# File 'lib/dynamoid/attributes.rb', line 10 def write_attribute(name, value) attributes[name.to_sym] = value end |