Class: Postful::Base::InternationalAddress
- Inherits:
-
Object
- Object
- Postful::Base::InternationalAddress
- Defined in:
- lib/postful/base.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#country ⇒ Object
Returns the value of attribute country.
-
#lines ⇒ Object
Returns the value of attribute lines.
Instance Method Summary collapse
Instance Attribute Details
#country ⇒ Object
Returns the value of attribute country.
163 164 165 |
# File 'lib/postful/base.rb', line 163 def country @country end |
#lines ⇒ Object
Returns the value of attribute lines.
164 165 166 |
# File 'lib/postful/base.rb', line 164 def lines @lines end |
Instance Method Details
#build_request(builder) ⇒ Object
166 167 168 169 170 171 172 173 |
# File 'lib/postful/base.rb', line 166 def build_request(builder) builder.addressee do lines.each_with_index do |line, i| builder.tag! "line#{i + 1}", line end builder.country country end end |