class Newebpay::CloseFund::Response
Attributes
message[R]
status[R]
Public Class Methods
new(response_params)
click to toggle source
# File lib/newebpay/close_fund/response.rb, line 7 def initialize(response_params) response_data = JSON.parse(response_params) @status = response_data['Status'] @message = response_data['Message'] @result = response_data['Result'] @result.each do |key, values| define_singleton_method(key.underscore) do values end end end
Public Instance Methods
success?()
click to toggle source
# File lib/newebpay/close_fund/response.rb, line 22 def success? status == 'SUCCESS' end