2015-09-08 09:44:40 +00:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: clients
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# name :string not null
|
|
|
|
# key :string not null
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
#
|
|
|
|
|
2015-09-08 09:30:11 +00:00
|
|
|
class Client < ActiveRecord::Base
|
2015-09-08 10:11:48 +00:00
|
|
|
def transactions
|
|
|
|
Transaction.where(origin: name)
|
|
|
|
end
|
2015-09-08 09:30:11 +00:00
|
|
|
end
|