Class: CXML::PostalAddress
- Inherits:
-
DocumentNode
- Object
- DocumentNode
- CXML::PostalAddress
- Defined in:
- lib/cxml/postal_address.rb
Overview
postal address, typically in a purchase order message
Instance Attribute Summary
Attributes inherited from DocumentNode
Instance Method Summary collapse
Methods inherited from DocumentNode
accessible_attributes, accessible_nodes, attributes, #initialize, #node_name, nodes, #serializable_hash, #to_element
Constructor Details
This class inherits a constructor from CXML::DocumentNode
Instance Method Details
#initialize_deliver_to(value) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/cxml/postal_address.rb', line 19 def initialize_deliver_to(value) @deliver_to = if value.is_a?(Array) value else [value] end end |
#initialize_street(value) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/cxml/postal_address.rb', line 27 def initialize_street(value) @street = if value.is_a?(Array) value else [value] end end |