Class: Mundipagg::BuyerAddress
- Inherits:
-
Object
- Object
- Mundipagg::BuyerAddress
- Defined in:
- lib/mundipagg/BuyerAddress.rb
Constant Summary collapse
- @@ADDRESS_TYPE =
Address Type Enum
{ :Billing => 'Billing', :Shipping => 'Shipping', :Work => 'Comercial', :Home => 'Residential' }
- @@COUNTRY =
Country Enum
{ :Brazil => 'Brazil', :UnitedStates => 'USA', :Argentina => 'Argentina', :Bolivia => 'Bolivia', :Chile => 'Chile', :Colombia => 'Colombia', :Uruguay => 'Uruguay', :Mexico => 'Mexico', :Paraguay => 'Paraguay' }
Instance Attribute Summary collapse
-
#addressTypeEnum ⇒ String
Address Type.
-
#city ⇒ String
City.
-
#complement ⇒ String
Address complement.
-
#countryEnum ⇒ String
Address country.
-
#district ⇒ String
District.
-
#number ⇒ String
Address number.
-
#state ⇒ String
Address state.
-
#street ⇒ String
Street.
-
#zipCode ⇒ String
Zip Code.
Class Method Summary collapse
-
.AddressTypeEnum ⇒ Object
Address Type Enum.
-
.CountryEnum ⇒ Object
Country Enum.
Instance Method Summary collapse
-
#initialize ⇒ BuyerAddress
constructor
Initialize class with properties.
Constructor Details
#initialize ⇒ BuyerAddress
Initialize class with properties
51 52 53 54 |
# File 'lib/mundipagg/BuyerAddress.rb', line 51 def initialize @addressTypeEnum = BuyerAddress.AddressTypeEnum[:Home] @countryEnum = BuyerAddress.CountryEnum[:Brazil] end |
Instance Attribute Details
#addressTypeEnum ⇒ String
Returns Address Type.
7 8 9 |
# File 'lib/mundipagg/BuyerAddress.rb', line 7 def addressTypeEnum @addressTypeEnum end |
#city ⇒ String
Returns City.
9 10 11 |
# File 'lib/mundipagg/BuyerAddress.rb', line 9 def city @city end |
#complement ⇒ String
Returns Address complement.
11 12 13 |
# File 'lib/mundipagg/BuyerAddress.rb', line 11 def complement @complement end |
#countryEnum ⇒ String
Returns Address country.
15 16 17 |
# File 'lib/mundipagg/BuyerAddress.rb', line 15 def countryEnum @countryEnum end |
#district ⇒ String
Returns District.
17 18 19 |
# File 'lib/mundipagg/BuyerAddress.rb', line 17 def district @district end |
#number ⇒ String
Returns Address number.
19 20 21 |
# File 'lib/mundipagg/BuyerAddress.rb', line 19 def number @number end |
#state ⇒ String
Returns Address state.
21 22 23 |
# File 'lib/mundipagg/BuyerAddress.rb', line 21 def state @state end |
#street ⇒ String
Returns Street.
23 24 25 |
# File 'lib/mundipagg/BuyerAddress.rb', line 23 def street @street end |
#zipCode ⇒ String
Returns Zip Code.
25 26 27 |
# File 'lib/mundipagg/BuyerAddress.rb', line 25 def zipCode @zipCode end |
Class Method Details
.AddressTypeEnum ⇒ Object
Address Type Enum
58 59 60 |
# File 'lib/mundipagg/BuyerAddress.rb', line 58 def self.AddressTypeEnum @@ADDRESS_TYPE end |
.CountryEnum ⇒ Object
Country Enum
64 65 66 |
# File 'lib/mundipagg/BuyerAddress.rb', line 64 def self.CountryEnum @@COUNTRY end |