Class: Zena::Acts::Serializable::PropertyAttribute
- Inherits:
-
ActiveRecord::XmlSerializer::Attribute
- Object
- ActiveRecord::XmlSerializer::Attribute
- Zena::Acts::Serializable::PropertyAttribute
- Defined in:
- lib/zena/acts/serializable.rb
Instance Attribute Summary collapse
-
#raw_value ⇒ Object
writeonly
Sets the attribute raw_value.
Instance Method Summary collapse
-
#initialize(name, record, value) ⇒ PropertyAttribute
constructor
A new instance of PropertyAttribute.
Constructor Details
#initialize(name, record, value) ⇒ PropertyAttribute
Returns a new instance of PropertyAttribute.
9 10 11 12 |
# File 'lib/zena/acts/serializable.rb', line 9 def initialize(name, record, value) @raw_value = value super(name, record) end |
Instance Attribute Details
#raw_value=(value) ⇒ Object
Sets the attribute raw_value
7 8 9 |
# File 'lib/zena/acts/serializable.rb', line 7 def raw_value=(value) @raw_value = value end |