Class: Remitmd::LinkResponse

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

Overview

One-time operator link for funding or withdrawing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#inspect, #to_h

Constructor Details

#initialize(attrs) ⇒ LinkResponse

Returns a new instance of LinkResponse.



399
400
401
402
403
404
405
# File 'lib/remitmd/models.rb', line 399

def initialize(attrs)
  h = attrs.transform_keys(&:to_s)
  @url            = h["url"]
  @token          = h["token"]
  @expires_at     = h["expires_at"]
  @wallet_address = h["wallet_address"]
end

Instance Attribute Details

#expires_atObject (readonly)

Returns the value of attribute expires_at.



407
408
409
# File 'lib/remitmd/models.rb', line 407

def expires_at
  @expires_at
end

#tokenObject (readonly)

Returns the value of attribute token.



407
408
409
# File 'lib/remitmd/models.rb', line 407

def token
  @token
end

#urlObject (readonly)

Returns the value of attribute url.



407
408
409
# File 'lib/remitmd/models.rb', line 407

def url
  @url
end

#wallet_addressObject (readonly)

Returns the value of attribute wallet_address.



407
408
409
# File 'lib/remitmd/models.rb', line 407

def wallet_address
  @wallet_address
end