Class: SixSaferpay::ResponseHeader
- Inherits:
-
Object
- Object
- SixSaferpay::ResponseHeader
- Defined in:
- lib/six_saferpay/models/response_header.rb
Instance Attribute Summary collapse
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#spec_version ⇒ Object
Returns the value of attribute spec_version.
Instance Method Summary collapse
-
#initialize(request_id:, spec_version:) ⇒ ResponseHeader
constructor
A new instance of ResponseHeader.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(request_id:, spec_version:) ⇒ ResponseHeader
6 7 8 9 |
# File 'lib/six_saferpay/models/response_header.rb', line 6 def initialize(request_id:, spec_version:) @request_id = request_id @spec_version = spec_version end |
Instance Attribute Details
#request_id ⇒ Object
Returns the value of attribute request_id.
4 5 6 |
# File 'lib/six_saferpay/models/response_header.rb', line 4 def request_id @request_id end |
#spec_version ⇒ Object
Returns the value of attribute spec_version.
4 5 6 |
# File 'lib/six_saferpay/models/response_header.rb', line 4 def spec_version @spec_version end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
11 12 13 14 15 16 |
# File 'lib/six_saferpay/models/response_header.rb', line 11 def to_hash hash = Hash.new hash.merge!(request_id: @request_id) hash.merge!(spec_version: @spec_version) hash end |