Class: Pesepay::StatusResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reference_number: nil, poll_url: nil, paid: false, json_string: nil) ⇒ StatusResponse

Returns a new instance of StatusResponse.



236
237
238
239
240
241
# File 'lib/pesepay.rb', line 236

def initialize(reference_number: nil, poll_url: nil, paid: false, json_string: nil)
  @paid = paid
  @reference_number = reference_number
  @poll_url = poll_url
  @raw_data = json_string
end

Instance Attribute Details

Returns the value of attribute paid.



234
235
236
# File 'lib/pesepay.rb', line 234

def paid
  @paid
end

#poll_urlObject (readonly)

Returns the value of attribute poll_url.



234
235
236
# File 'lib/pesepay.rb', line 234

def poll_url
  @poll_url
end

#raw_dataObject (readonly)

Returns the value of attribute raw_data.



234
235
236
# File 'lib/pesepay.rb', line 234

def raw_data
  @raw_data
end

#reference_numberObject (readonly)

Returns the value of attribute reference_number.



234
235
236
# File 'lib/pesepay.rb', line 234

def reference_number
  @reference_number
end