101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# File 'lib/transaction/transaction.rb', line 101
def self.resource
{
resource_name: 'Transaction',
resource_maker: proc { |json|
Transaction.new(
amount: json['amount'],
description: json['description'],
external_id: json['external_id'],
receiver_id: json['receiver_id'],
sender_id: json['sender_id'],
tags: json['tags'],
id: json['id'],
fee: json['fee'],
source: json['source'],
balance: json['balance'],
created: json['created']
)
}
}
end
|