Class: Postful::Base::DomesticAddress
- Inherits:
-
Object
- Object
- Postful::Base::DomesticAddress
- Defined in:
- lib/postful/base.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#city ⇒ Object
Returns the value of attribute city.
-
#company ⇒ Object
Returns the value of attribute company.
-
#name ⇒ Object
Returns the value of attribute name.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
143 144 145 |
# File 'lib/postful/base.rb', line 143 def address @address end |
#address2 ⇒ Object
Returns the value of attribute address2.
144 145 146 |
# File 'lib/postful/base.rb', line 144 def address2 @address2 end |
#city ⇒ Object
Returns the value of attribute city.
145 146 147 |
# File 'lib/postful/base.rb', line 145 def city @city end |
#company ⇒ Object
Returns the value of attribute company.
142 143 144 |
# File 'lib/postful/base.rb', line 142 def company @company end |
#name ⇒ Object
Returns the value of attribute name.
141 142 143 |
# File 'lib/postful/base.rb', line 141 def name @name end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
147 148 149 |
# File 'lib/postful/base.rb', line 147 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
146 147 148 |
# File 'lib/postful/base.rb', line 146 def state @state end |
Instance Method Details
#build_request(builder) ⇒ Object
149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/postful/base.rb', line 149 def build_request(builder) builder.addressee do builder.name name builder.company company if company builder.address address builder.address2 address2 if address2 builder.city city builder.state state builder.tag! 'postal-code', postal_code end end |