Class: Payment::PaymentDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/bizLogic/payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success, error_message, address) ⇒ PaymentDetails

Returns a new instance of PaymentDetails.



32
33
34
35
36
# File 'lib/bizLogic/payment.rb', line 32

def initialize(success, error_message, address)
  @success = success
  @error_message = error_message
  @address = address
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



31
32
33
# File 'lib/bizLogic/payment.rb', line 31

def address
  @address
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



31
32
33
# File 'lib/bizLogic/payment.rb', line 31

def error_message
  @error_message
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/bizLogic/payment.rb', line 37

def success?
  @success
end