Class: Mercadopago::Order::Request::AddressRequest
- Inherits:
-
Data
- Object
- Data
- Mercadopago::Order::Request::AddressRequest
- Includes:
- HashConversion
- Defined in:
- lib/mercadopago/resources/order/request.rb
Overview
E/G. address ==
Covers both payer.address and shipment.address. The API tolerates the union of both field sets; unset fields are omitted.
Instance Attribute Summary collapse
-
#apartment ⇒ Object
readonly
Returns the value of attribute apartment.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#complement ⇒ Object
readonly
Returns the value of attribute complement.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#floor ⇒ Object
readonly
Returns the value of attribute floor.
-
#neighborhood ⇒ Object
readonly
Returns the value of attribute neighborhood.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#street_name ⇒ Object
readonly
Returns the value of attribute street_name.
-
#street_number ⇒ Object
readonly
Returns the value of attribute street_number.
-
#zip_code ⇒ Object
readonly
Returns the value of attribute zip_code.
Instance Method Summary collapse
-
#initialize(zip_code: nil, street_name: nil, street_number: nil, neighborhood: nil, city: nil, state: nil, complement: nil, country: nil, floor: nil, apartment: nil) ⇒ AddressRequest
constructor
A new instance of AddressRequest.
Methods included from HashConversion
Constructor Details
#initialize(zip_code: nil, street_name: nil, street_number: nil, neighborhood: nil, city: nil, state: nil, complement: nil, country: nil, floor: nil, apartment: nil) ⇒ AddressRequest
Returns a new instance of AddressRequest.
283 284 285 286 287 288 |
# File 'lib/mercadopago/resources/order/request.rb', line 283 def initialize( zip_code: nil, street_name: nil, street_number: nil, neighborhood: nil, city: nil, state: nil, complement: nil, country: nil, floor: nil, apartment: nil ) super end |
Instance Attribute Details
#apartment ⇒ Object (readonly)
Returns the value of attribute apartment
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def apartment @apartment end |
#city ⇒ Object (readonly)
Returns the value of attribute city
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def city @city end |
#complement ⇒ Object (readonly)
Returns the value of attribute complement
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def complement @complement end |
#country ⇒ Object (readonly)
Returns the value of attribute country
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def country @country end |
#floor ⇒ Object (readonly)
Returns the value of attribute floor
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def floor @floor end |
#neighborhood ⇒ Object (readonly)
Returns the value of attribute neighborhood
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def neighborhood @neighborhood end |
#state ⇒ Object (readonly)
Returns the value of attribute state
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def state @state end |
#street_name ⇒ Object (readonly)
Returns the value of attribute street_name
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def street_name @street_name end |
#street_number ⇒ Object (readonly)
Returns the value of attribute street_number
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def street_number @street_number end |
#zip_code ⇒ Object (readonly)
Returns the value of attribute zip_code
269 270 271 |
# File 'lib/mercadopago/resources/order/request.rb', line 269 def zip_code @zip_code end |