Class: Fondy::TransactionListResponse
Instance Method Summary
collapse
#error?, #initialize
Instance Method Details
#error_code ⇒ Object
12
13
14
|
# File 'lib/fondy/transaction_list_response.rb', line 12
def error_code
response[:error_code] if response.is_a?(Hash)
end
|
#error_message ⇒ Object
16
17
18
|
# File 'lib/fondy/transaction_list_response.rb', line 16
def error_message
response[:error_message] if response.is_a?(Hash)
end
|
#success? ⇒ Boolean
8
9
10
|
# File 'lib/fondy/transaction_list_response.rb', line 8
def success?
response.is_a?(Array)
end
|
#transactions ⇒ Object
4
5
6
|
# File 'lib/fondy/transaction_list_response.rb', line 4
def transactions
success? ? response : []
end
|