Class: Blockchain0xX402::Wire::PaymentRequirement
- Inherits:
-
Struct
- Object
- Struct
- Blockchain0xX402::Wire::PaymentRequirement
- Defined in:
- lib/blockchain0x_x402/wire.rb
Instance Attribute Summary collapse
-
#amount_wei_usdc ⇒ Object
Returns the value of attribute amount_wei_usdc.
- #amount_wei_usdc @return [String] integer text(@return[String]) ⇒ Object readonly
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
- #chain_id @return [String] CAIP-2 chain id(@return[String]) ⇒ Object readonly
-
#max_age_seconds ⇒ Object
Returns the value of attribute max_age_seconds.
- #max_age_seconds @return [Integer, nil](@return[Integer, nil]) ⇒ Object readonly
-
#network ⇒ Object
Returns the value of attribute network.
- #network @return [String] 'mainnet' | 'testnet'(@return[String]) ⇒ Object readonly
-
#pay_to_address ⇒ Object
Returns the value of attribute pay_to_address.
- #pay_to_address @return [String](@return[String]) ⇒ Object readonly
-
#payment_request_id ⇒ Object
Returns the value of attribute payment_request_id.
- #payment_request_id @return [String](@return[String]) ⇒ Object readonly
-
#scheme ⇒ Object
Returns the value of attribute scheme.
- #scheme @return [String] 'exact-usdc'(@return[String]) ⇒ Object readonly
Instance Attribute Details
#amount_wei_usdc ⇒ Object
Returns the value of attribute amount_wei_usdc
56 57 58 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 def amount_wei_usdc @amount_wei_usdc end |
#amount_wei_usdc @return [String] integer text(@return[String]) ⇒ Object (readonly)
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 PaymentRequirement = Struct.new( :scheme, :network, :chain_id, :pay_to_address, :amount_wei_usdc, :payment_request_id, :max_age_seconds, keyword_init: true, ) |
#chain_id ⇒ Object
Returns the value of attribute chain_id
56 57 58 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 def chain_id @chain_id end |
#chain_id @return [String] CAIP-2 chain id(@return[String]) ⇒ Object (readonly)
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 PaymentRequirement = Struct.new( :scheme, :network, :chain_id, :pay_to_address, :amount_wei_usdc, :payment_request_id, :max_age_seconds, keyword_init: true, ) |
#max_age_seconds ⇒ Object
Returns the value of attribute max_age_seconds
56 57 58 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 def max_age_seconds @max_age_seconds end |
#max_age_seconds @return [Integer, nil](@return[Integer, nil]) ⇒ Object (readonly)
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 PaymentRequirement = Struct.new( :scheme, :network, :chain_id, :pay_to_address, :amount_wei_usdc, :payment_request_id, :max_age_seconds, keyword_init: true, ) |
#network ⇒ Object
Returns the value of attribute network
56 57 58 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 def network @network end |
#network @return [String] 'mainnet' | 'testnet'(@return[String]) ⇒ Object (readonly)
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 PaymentRequirement = Struct.new( :scheme, :network, :chain_id, :pay_to_address, :amount_wei_usdc, :payment_request_id, :max_age_seconds, keyword_init: true, ) |
#pay_to_address ⇒ Object
Returns the value of attribute pay_to_address
56 57 58 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 def pay_to_address @pay_to_address end |
#pay_to_address @return [String](@return[String]) ⇒ Object (readonly)
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 PaymentRequirement = Struct.new( :scheme, :network, :chain_id, :pay_to_address, :amount_wei_usdc, :payment_request_id, :max_age_seconds, keyword_init: true, ) |
#payment_request_id ⇒ Object
Returns the value of attribute payment_request_id
56 57 58 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 def payment_request_id @payment_request_id end |
#payment_request_id @return [String](@return[String]) ⇒ Object (readonly)
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 PaymentRequirement = Struct.new( :scheme, :network, :chain_id, :pay_to_address, :amount_wei_usdc, :payment_request_id, :max_age_seconds, keyword_init: true, ) |
#scheme ⇒ Object
Returns the value of attribute scheme
56 57 58 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 def scheme @scheme end |
#scheme @return [String] 'exact-usdc'(@return[String]) ⇒ Object (readonly)
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/blockchain0x_x402/wire.rb', line 56 PaymentRequirement = Struct.new( :scheme, :network, :chain_id, :pay_to_address, :amount_wei_usdc, :payment_request_id, :max_age_seconds, keyword_init: true, ) |