Class: Pesepay::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success, referenceNumber: nil, pollUrl: nil, redirectUrl: nil, message: nil) ⇒ Response

Returns a new instance of Response.



221
222
223
224
225
226
227
# File 'lib/pesepay.rb', line 221

def initialize(success, referenceNumber: nil, pollUrl: nil, redirectUrl: nil, message: nil)
  @success = success
  @referenceNumber = referenceNumber
  @pollUrl = pollUrl
  @redirectUrl = redirectUrl
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



219
220
221
# File 'lib/pesepay.rb', line 219

def message
  @message
end

#pollUrlObject (readonly)

Returns the value of attribute pollUrl.



219
220
221
# File 'lib/pesepay.rb', line 219

def pollUrl
  @pollUrl
end

#redirectUrlObject (readonly)

Returns the value of attribute redirectUrl.



219
220
221
# File 'lib/pesepay.rb', line 219

def redirectUrl
  @redirectUrl
end

#referenceNumberObject (readonly)

Returns the value of attribute referenceNumber.



219
220
221
# File 'lib/pesepay.rb', line 219

def referenceNumber
  @referenceNumber
end

#successObject (readonly)

Returns the value of attribute success.



219
220
221
# File 'lib/pesepay.rb', line 219

def success
  @success
end