Class: Zena::Acts::Serializable::XmlNodeSerializer
- Inherits:
-
ActiveRecord::XmlSerializer
- Object
- ActiveRecord::XmlSerializer
- Zena::Acts::Serializable::XmlNodeSerializer
- Defined in:
- lib/zena/acts/serializable.rb
Overview
IdAttribute
Instance Method Summary collapse
- #add_attributes ⇒ Object
- #serializable_id_attributes ⇒ Object
- #serializable_property_attributes ⇒ Object
Instance Method Details
#add_attributes ⇒ Object
58 59 60 61 62 63 64 65 66 |
# File 'lib/zena/acts/serializable.rb', line 58 def add_attributes ( serializable_attributes + serializable_method_attributes + serializable_property_attributes + serializable_id_attributes ).each do |attribute| add_tag(attribute) end end |
#serializable_id_attributes ⇒ Object
72 73 74 |
# File 'lib/zena/acts/serializable.rb', line 72 def serializable_id_attributes Array([:ids]).map { |name, value| IdAttribute.new(name, @record, value) } end |
#serializable_property_attributes ⇒ Object
68 69 70 |
# File 'lib/zena/acts/serializable.rb', line 68 def serializable_property_attributes Array([:properties]).map { |name, value| PropertyAttribute.new(name, @record, value) } end |