180
181
182
183
184
185
186
187
188
189
190
191
192
|
# File 'lib/megam/core/billingtransactions.rb', line 180
def from_hash(o)
@id = o[:id] if o.has_key?(:id)
@accounts_id = o[:accounts_id] if o.has_key?(:accounts_id)
@gateway = o[:gateway] if o.has_key?(:gateway)
@amountin = o[:amountin] if o.has_key?(:amountin)
@amountout = o[:amountout] if o.has_key?(:amountout)
@fees = o[:fees] if o.has_key?(:fees)
@tranid = o[:tranid] if o.has_key?(:tranid)
@trandate = o[:trandate] if o.has_key?(:trandate)
@currency_type = o[:currency_type] if o.has_key?(:currency_type)
@created_at = o[:created_at] if o.has_key?(:created_at)
self
end
|