Class: NodexPay::Payment

Inherits:
Data
  • Object
show all
Defined in:
lib/nodex_pay/models.rb,
sig/nodex_pay.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, token:, ext_reserved:, ext_description:) ⇒ Payment

Returns a new instance of Payment.



5
6
7
8
9
10
11
12
# File 'lib/nodex_pay/models.rb', line 5

def initialize(url:, token:, ext_reserved:, ext_description:)
  super(
    url: url.dup.freeze,
    token: token.dup.freeze,
    ext_reserved: ext_reserved&.dup&.freeze,
    ext_description: ext_description&.dup&.freeze
  )
end

Instance Attribute Details

#ext_descriptionObject (readonly)

Returns the value of attribute ext_description

Returns:

  • (Object)

    the current value of ext_description



4
5
6
# File 'lib/nodex_pay/models.rb', line 4

def ext_description
  @ext_description
end

#ext_reservedObject (readonly)

Returns the value of attribute ext_reserved

Returns:

  • (Object)

    the current value of ext_reserved



4
5
6
# File 'lib/nodex_pay/models.rb', line 4

def ext_reserved
  @ext_reserved
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



4
5
6
# File 'lib/nodex_pay/models.rb', line 4

def token
  @token
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



4
5
6
# File 'lib/nodex_pay/models.rb', line 4

def url
  @url
end