Class: Remitmd::PermitSignature
- Inherits:
-
Object
- Object
- Remitmd::PermitSignature
- Defined in:
- lib/remitmd/models.rb
Overview
EIP-2612 permit signature for gasless USDC approval.
Instance Attribute Summary collapse
-
#deadline ⇒ Object
readonly
Returns the value of attribute deadline.
-
#r ⇒ Object
readonly
Returns the value of attribute r.
-
#s ⇒ Object
readonly
Returns the value of attribute s.
-
#v ⇒ Object
readonly
Returns the value of attribute v.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, deadline:, v:, r:, s:) ⇒ PermitSignature
constructor
A new instance of PermitSignature.
- #to_h ⇒ Object
Constructor Details
#initialize(value:, deadline:, v:, r:, s:) ⇒ PermitSignature
Returns a new instance of PermitSignature.
61 62 63 64 65 66 67 |
# File 'lib/remitmd/models.rb', line 61 def initialize(value:, deadline:, v:, r:, s:) @value = value @deadline = deadline @v = v @r = r @s = s end |
Instance Attribute Details
#deadline ⇒ Object (readonly)
Returns the value of attribute deadline.
59 60 61 |
# File 'lib/remitmd/models.rb', line 59 def deadline @deadline end |
#r ⇒ Object (readonly)
Returns the value of attribute r.
59 60 61 |
# File 'lib/remitmd/models.rb', line 59 def r @r end |
#s ⇒ Object (readonly)
Returns the value of attribute s.
59 60 61 |
# File 'lib/remitmd/models.rb', line 59 def s @s end |
#v ⇒ Object (readonly)
Returns the value of attribute v.
59 60 61 |
# File 'lib/remitmd/models.rb', line 59 def v @v end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
59 60 61 |
# File 'lib/remitmd/models.rb', line 59 def value @value end |
Instance Method Details
#to_h ⇒ Object
69 70 71 |
# File 'lib/remitmd/models.rb', line 69 def to_h { value: @value, deadline: @deadline, v: @v, r: @r, s: @s } end |