Class: PagSeguro::Address

Inherits:
Object
  • Object
show all
Includes:
Extensions::MassAssignment
Defined in:
lib/pagseguro/address.rb

Overview

Set the shipping address information.

Instance Attribute Summary collapse

Method Summary

Methods included from Extensions::MassAssignment

#initialize

Instance Attribute Details

#cityObject

Set the city name.



22
23
24
# File 'lib/pagseguro/address.rb', line 22

def city
  @city
end

#complementObject

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

#countryObject

Set the country code. Defaults to BRA.



33
34
35
# File 'lib/pagseguro/address.rb', line 33

def country
  @country
end

#districtObject

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

#numberObject

Set the house/building number.



10
11
12
# File 'lib/pagseguro/address.rb', line 10

def number
  @number
end

#postal_codeObject

Set the postal code. Must contain 8 numbers.



29
30
31
# File 'lib/pagseguro/address.rb', line 29

def postal_code
  @postal_code
end

#stateObject

Set the state or province.



25
26
27
# File 'lib/pagseguro/address.rb', line 25

def state
  @state
end

#streetObject

Set the street name.



7
8
9
# File 'lib/pagseguro/address.rb', line 7

def street
  @street
end