Class: Blockchain0xX402::Server::VerifyOk

Inherits:
Struct
  • Object
show all
Defined in:
lib/blockchain0x_x402/server.rb

Overview

Typed verify result. Returns one of:

{ ok: true, payment: ExactUsdcPayment }
{ ok: false, reason: 'header_missing' | 'header_malformed' |
  'requirement_mismatch' | 'settle_rejected', message: String }

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#paymentObject

Returns the value of attribute payment

Returns:

  • (Object)

    the current value of payment



125
126
127
# File 'lib/blockchain0x_x402/server.rb', line 125

def payment
  @payment
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


126
# File 'lib/blockchain0x_x402/server.rb', line 126

def ok?; true; end