Class: Zena::Acts::Serializable::PropertyAttribute

Inherits:
ActiveRecord::XmlSerializer::Attribute
  • Object
show all
Defined in:
lib/zena/acts/serializable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • value

    the value to set the attribute raw_value to.



7
8
9
# File 'lib/zena/acts/serializable.rb', line 7

def raw_value=(value)
  @raw_value = value
end