Class: CurrencyCloud::PaymentValidationResult

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/currency_cloud/payment_validation_result.rb

Instance Attribute Summary collapse

Attributes included from Resource

#changed_attributes

Instance Method Summary collapse

Methods included from Resource

included, #inspect

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_headersObject (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(options = {})
  # Only exclude @response_headers from serialization
  {
    'attributes' => @attributes,
    'changed_attributes' => @changed_attributes
  }.to_yaml(options)
end