Class: PagSeguro::Address
- Inherits:
-
Object
- Object
- PagSeguro::Address
- Includes:
- Extensions::MassAssignment
- Defined in:
- lib/pagseguro/address.rb
Overview
Set the shipping address information.
Instance Attribute Summary collapse
-
#city ⇒ Object
Set the city name.
-
#complement ⇒ Object
Set the address complement.
-
#country ⇒ Object
Set the country code.
-
#district ⇒ Object
Set the district.
-
#number ⇒ Object
Set the house/building number.
-
#postal_code ⇒ Object
Set the postal code.
-
#state ⇒ Object
Set the state or province.
-
#street ⇒ Object
Set the street name.
Method Summary
Methods included from Extensions::MassAssignment
Instance Attribute Details
#city ⇒ Object
Set the city name.
22 23 24 |
# File 'lib/pagseguro/address.rb', line 22 def city @city end |
#complement ⇒ Object
Set the address complement. Can be the apartment, suite number or any other qualifier after the street/number pair.
15 16 17 |
# File 'lib/pagseguro/address.rb', line 15 def complement @complement end |
#country ⇒ Object
Set the country code. Defaults to BRA
.
33 34 35 |
# File 'lib/pagseguro/address.rb', line 33 def country @country end |
#district ⇒ Object
Set the district. Can be the district, county or neighborhood, if applicable.
19 20 21 |
# File 'lib/pagseguro/address.rb', line 19 def district @district end |
#number ⇒ Object
Set the house/building number.
10 11 12 |
# File 'lib/pagseguro/address.rb', line 10 def number @number end |
#postal_code ⇒ Object
Set the postal code. Must contain 8 numbers.
29 30 31 |
# File 'lib/pagseguro/address.rb', line 29 def postal_code @postal_code end |
#state ⇒ Object
Set the state or province.
25 26 27 |
# File 'lib/pagseguro/address.rb', line 25 def state @state end |
#street ⇒ Object
Set the street name.
7 8 9 |
# File 'lib/pagseguro/address.rb', line 7 def street @street end |