Class: Remitmd::LinkResponse
Overview
One-time operator link for funding or withdrawing.
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#wallet_address ⇒ Object
readonly
Returns the value of attribute wallet_address.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ LinkResponse
constructor
A new instance of LinkResponse.
Methods inherited from Model
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_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
407 408 409 |
# File 'lib/remitmd/models.rb', line 407 def expires_at @expires_at end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
407 408 409 |
# File 'lib/remitmd/models.rb', line 407 def token @token end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
407 408 409 |
# File 'lib/remitmd/models.rb', line 407 def url @url end |
#wallet_address ⇒ Object (readonly)
Returns the value of attribute wallet_address.
407 408 409 |
# File 'lib/remitmd/models.rb', line 407 def wallet_address @wallet_address end |