Class: Increase::Resources::BookkeepingEntries
- Inherits:
-
Object
- Object
- Increase::Resources::BookkeepingEntries
- Defined in:
- lib/increase/resources/bookkeeping_entries.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ BookkeepingEntries
constructor
A new instance of BookkeepingEntries.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::BookkeepingEntry>
List Bookkeeping Entries.
-
#retrieve(bookkeeping_entry_id, opts = {}) ⇒ Increase::Models::BookkeepingEntry
Retrieve a Bookkeeping Entry.
Constructor Details
#initialize(client:) ⇒ BookkeepingEntries
Returns a new instance of BookkeepingEntries.
6 7 8 |
# File 'lib/increase/resources/bookkeeping_entries.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::BookkeepingEntry>
List Bookkeeping Entries
34 35 36 37 38 39 40 41 42 |
# File 'lib/increase/resources/bookkeeping_entries.rb', line 34 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/bookkeeping_entries" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::BookkeepingEntry @client.request(req, opts) end |
#retrieve(bookkeeping_entry_id, opts = {}) ⇒ Increase::Models::BookkeepingEntry
Retrieve a Bookkeeping Entry
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/bookkeeping_entries.rb', line 16 def retrieve(bookkeeping_entry_id, opts = {}) req = {} req[:method] = :get req[:path] = "/bookkeeping_entries/#{bookkeeping_entry_id}" req[:model] = Increase::Models::BookkeepingEntry @client.request(req, opts) end |