Class: PayPal::AdaptivePayments::Response::ShippingAddress

Inherits:
Object
  • Object
show all
Includes:
Common::Response
Defined in:
lib/paypal/adaptive_payments/response/shipping_address.rb

Instance Attribute Summary collapse

Attributes included from Common::Response

#error, #response_envelope

Instance Method Summary collapse

Methods included from Common::Response

#errors, #set_error, #set_response_envelope, #success?, #valid?

Methods included from Common::Base

#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore

Instance Attribute Details

#selectedAddressObject

Returns the value of attribute selectedAddress.



5
6
7
# File 'lib/paypal/adaptive_payments/response/shipping_address.rb', line 5

def selectedAddress
  @selectedAddress
end

Instance Method Details

#set_selected_address(value) ⇒ Object



7
8
9
# File 'lib/paypal/adaptive_payments/response/shipping_address.rb', line 7

def set_selected_address(value)
  self.selected_address = build_value(Address, value)
end