Class: Etsy::Transaction
- Inherits:
-
Object
show all
- Includes:
- Model
- Defined in:
- lib/etsy/transaction.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Model
included, #initialize, #result, #secret, #token
Class Method Details
.find_all_by_shop_id(shop_id, options = {}) ⇒ Object
9
10
11
|
# File 'lib/etsy/transaction.rb', line 9
def self.find_all_by_shop_id(shop_id, options = {})
get_all("/shops/#{shop_id}/transactions", options)
end
|
Instance Method Details
#buyer ⇒ Object
13
14
15
|
# File 'lib/etsy/transaction.rb', line 13
def buyer
@buyer ||= User.find(buyer_id)
end
|