Exception: PiNetwork::Errors::TxidAlreadyLinkedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, payment_id, txid) ⇒ TxidAlreadyLinkedError

Returns a new instance of TxidAlreadyLinkedError.



27
28
29
30
31
# File 'lib/errors.rb', line 27

def initialize(message, payment_id, txid)
  super(message)
  @payment_id = payment_id
  @txid = txid
end

Instance Attribute Details

#payment_idObject (readonly)

Returns the value of attribute payment_id.



24
25
26
# File 'lib/errors.rb', line 24

def payment_id
  @payment_id
end

#txidObject (readonly)

Returns the value of attribute txid.



25
26
27
# File 'lib/errors.rb', line 25

def txid
  @txid
end