Class: Remitmd::PermitSignature

Inherits:
Object
  • Object
show all
Defined in:
lib/remitmd/models.rb

Overview

EIP-2612 permit signature for gasless USDC approval.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deadlineObject (readonly)

Returns the value of attribute deadline.



59
60
61
# File 'lib/remitmd/models.rb', line 59

def deadline
  @deadline
end

#rObject (readonly)

Returns the value of attribute r.



59
60
61
# File 'lib/remitmd/models.rb', line 59

def r
  @r
end

#sObject (readonly)

Returns the value of attribute s.



59
60
61
# File 'lib/remitmd/models.rb', line 59

def s
  @s
end

#vObject (readonly)

Returns the value of attribute v.



59
60
61
# File 'lib/remitmd/models.rb', line 59

def v
  @v
end

#valueObject (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_hObject



69
70
71
# File 'lib/remitmd/models.rb', line 69

def to_h
  { value: @value, deadline: @deadline, v: @v, r: @r, s: @s }
end