Class: Pina::PettyCashDisburstment
- Inherits:
-
Object
- Object
- Pina::PettyCashDisburstment
- Defined in:
- lib/pina/petty_cash_disburstment.rb
Class Method Summary collapse
Class Method Details
.all ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/pina/petty_cash_disburstment.rb', line 16 def all response = Pina::RestAdapter.get(:petty_cash_disburstments) return Pina::Collections::PettyCashDisburstment.new(attributes(response)) if response.ok? response end |
.find(gid) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/pina/petty_cash_disburstment.rb', line 7 def find(gid) response = Pina::RestAdapter.get(:petty_cash_disburstments, gid) return Pina::Models::PettyCashDisburstment.new(attributes(response)) if response.ok? response end |