Class: ReactiveShipping::CPPWSMerchantDetailsResponse
- Includes:
- CPPWSErrorResponse
- Defined in:
- lib/reactive_shipping/carriers/canada_post_pws.rb
Instance Attribute Summary collapse
-
#contract_number ⇒ Object
readonly
Returns the value of attribute contract_number.
-
#customer_number ⇒ Object
readonly
Returns the value of attribute customer_number.
-
#has_default_credit_card ⇒ Object
readonly
Returns the value of attribute has_default_credit_card.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Attributes included from CPPWSErrorResponse
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ CPPWSMerchantDetailsResponse
constructor
A new instance of CPPWSMerchantDetailsResponse.
Methods included from CPPWSErrorResponse
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ CPPWSMerchantDetailsResponse
Returns a new instance of CPPWSMerchantDetailsResponse.
893 894 895 896 897 898 899 900 901 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 893 def initialize(success, , params = {}, = {}) handle_error(, ) super @customer_number = [:customer_number] @contract_number = [:contract_number] @username = [:username] @password = [:password] @has_default_credit_card = [:has_default_credit_card] end |
Instance Attribute Details
#contract_number ⇒ Object (readonly)
Returns the value of attribute contract_number.
892 893 894 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 892 def contract_number @contract_number end |
#customer_number ⇒ Object (readonly)
Returns the value of attribute customer_number.
892 893 894 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 892 def customer_number @customer_number end |
#has_default_credit_card ⇒ Object (readonly)
Returns the value of attribute has_default_credit_card.
892 893 894 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 892 def has_default_credit_card @has_default_credit_card end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
892 893 894 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 892 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
892 893 894 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 892 def username @username end |