Class: CurrencyCloud::PaymentValidationResult
- Inherits:
-
Object
- Object
- CurrencyCloud::PaymentValidationResult
- Includes:
- Resource
- Defined in:
- lib/currency_cloud/payment_validation_result.rb
Instance Attribute Summary collapse
-
#response_headers ⇒ Object
readonly
Returns the value of attribute response_headers.
Attributes included from Resource
Instance Method Summary collapse
-
#initialize(data, response_headers = {}) ⇒ PaymentValidationResult
constructor
A new instance of PaymentValidationResult.
- #to_yaml(options = {}) ⇒ Object
Methods included from Resource
Constructor Details
#initialize(data, response_headers = {}) ⇒ PaymentValidationResult
Returns a new instance of PaymentValidationResult.
6 7 8 9 |
# File 'lib/currency_cloud/payment_validation_result.rb', line 6 def initialize(data, response_headers = {}) super(data) @response_headers = response_headers end |
Instance Attribute Details
#response_headers ⇒ Object (readonly)
Returns the value of attribute response_headers.
4 5 6 |
# File 'lib/currency_cloud/payment_validation_result.rb', line 4 def response_headers @response_headers end |
Instance Method Details
#to_yaml(options = {}) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/currency_cloud/payment_validation_result.rb', line 11 def to_yaml( = {}) # Only exclude @response_headers from serialization { 'attributes' => @attributes, 'changed_attributes' => @changed_attributes }.to_yaml() end |