Class: Postful::Base::InternationalAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/postful/base.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countryObject

Returns the value of attribute country.



163
164
165
# File 'lib/postful/base.rb', line 163

def country
  @country
end

#linesObject

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