Class: SixSaferpay::SixPaymentPage::Assert
- Inherits:
-
Object
- Object
- SixSaferpay::SixPaymentPage::Assert
- Defined in:
- lib/six_saferpay/api/six_payment_page/requests/assert.rb
Instance Attribute Summary collapse
-
#request_header ⇒ Object
Returns the value of attribute request_header.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(request_header: nil, token:) ⇒ Assert
constructor
A new instance of Assert.
- #response_class ⇒ Object
- #to_hash ⇒ Object (also: #to_h)
- #to_json ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(request_header: nil, token:) ⇒ Assert
Returns a new instance of Assert.
7 8 9 10 |
# File 'lib/six_saferpay/api/six_payment_page/requests/assert.rb', line 7 def initialize(request_header: nil, token:) @request_header = request_header || SixSaferpay::RequestHeader.new() @token = token end |
Instance Attribute Details
#request_header ⇒ Object
Returns the value of attribute request_header.
5 6 7 |
# File 'lib/six_saferpay/api/six_payment_page/requests/assert.rb', line 5 def request_header @request_header end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/six_saferpay/api/six_payment_page/requests/assert.rb', line 5 def token @token end |
Instance Method Details
#response_class ⇒ Object
28 29 30 |
# File 'lib/six_saferpay/api/six_payment_page/requests/assert.rb', line 28 def response_class SixSaferpay::SixPaymentPage::AssertResponse end |
#to_hash ⇒ Object Also known as: to_h
12 13 14 15 16 17 |
# File 'lib/six_saferpay/api/six_payment_page/requests/assert.rb', line 12 def to_hash hash = Hash.new hash.merge!(request_header: @request_header.to_h) hash.merge!(token: @token) hash end |
#to_json ⇒ Object
20 21 22 |
# File 'lib/six_saferpay/api/six_payment_page/requests/assert.rb', line 20 def to_json to_hash.to_json end |
#url ⇒ Object
24 25 26 |
# File 'lib/six_saferpay/api/six_payment_page/requests/assert.rb', line 24 def url '/Payment/v1/PaymentPage/Assert' end |