Module: Vault::AttributeAccessors
- Defined in:
- lib/vault/attribute_accessors.rb
Instance Method Summary collapse
- #attributes ⇒ Object
- #initialize ⇒ Object
- #read_attribute(name) ⇒ Object
- #write_attribute(name, value) ⇒ Object
Instance Method Details
#attributes ⇒ Object
16 17 18 |
# File 'lib/vault/attribute_accessors.rb', line 16 def attributes @_attributes end |
#initialize ⇒ Object
3 4 5 6 |
# File 'lib/vault/attribute_accessors.rb', line 3 def initialize(*) @_attributes = attributes_from_model_properties super end |
#read_attribute(name) ⇒ Object
12 13 14 |
# File 'lib/vault/attribute_accessors.rb', line 12 def read_attribute(name) @_attributes[name] end |
#write_attribute(name, value) ⇒ Object
8 9 10 |
# File 'lib/vault/attribute_accessors.rb', line 8 def write_attribute(name, value) @_attributes[name] = value end |