class EwayRapid::TransactionSearchResponse
Attributes
error[RW]
transactions[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/eway_rapid/entities/transaction_search_response.rb, line 16 def self.from_hash(hash) transaction_search_response = TransactionSearchResponse.new transaction_search_response.transactions = InternalModels::Transaction.from_array(hash[Constants::TRANSACTIONS]) transaction_search_response.error = hash[Constants::ERRORS_CAPITALIZED] transaction_search_response end
from_json(json)
click to toggle source
# File lib/eway_rapid/entities/transaction_search_response.rb, line 11 def self.from_json(json) hash = JSON.parse(json) from_hash(hash) end
Public Instance Methods
to_json(options={})
click to toggle source
# File lib/eway_rapid/entities/transaction_search_response.rb, line 6 def to_json(options={}) {Constants::TRANSACTIONS => transactions, Constants::ERRORS_CAPITALIZED => error}.to_json end