Class X402::Configuration::Route ¶
Inherits: Struct
Route holds a raw amount_sats that may be an Integer or a callable. The resolve_amount_sats method evaluates callables at access time, enabling fiat-denominated pricing with live exchange rates.
Attributes¶
amount_sats [RW] ¶
Returns the value of attribute amount_sats - @return [Object] the current value of amount_sats
arc_wait_for [RW] ¶
Returns the value of attribute arc_wait_for - @return [Object] the current value of arc_wait_for
http_method [RW] ¶
Returns the value of attribute http_method - @return [Object] the current value of http_method
path [RW] ¶
Returns the value of attribute path - @return [Object] the current value of path
Public Instance Methods¶
resolve_amount_sats() ¶
Resolves amount_sats — if it's a callable (Proc/Lambda), it is evaluated each time to get the current sats amount.