Class: Postful::Base::DomesticAddress

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address.



143
144
145
# File 'lib/postful/base.rb', line 143

def address
  @address
end

#address2Object

Returns the value of attribute address2.



144
145
146
# File 'lib/postful/base.rb', line 144

def address2
  @address2
end

#cityObject

Returns the value of attribute city.



145
146
147
# File 'lib/postful/base.rb', line 145

def city
  @city
end

#companyObject

Returns the value of attribute company.



142
143
144
# File 'lib/postful/base.rb', line 142

def company
  @company
end

#nameObject

Returns the value of attribute name.



141
142
143
# File 'lib/postful/base.rb', line 141

def name
  @name
end

#postal_codeObject

Returns the value of attribute postal_code.



147
148
149
# File 'lib/postful/base.rb', line 147

def postal_code
  @postal_code
end

#stateObject

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