Class: Increase::Resources::BookkeepingEntrySets
- Inherits:
-
Object
- Object
- Increase::Resources::BookkeepingEntrySets
- Defined in:
- lib/increase/resources/bookkeeping_entry_sets.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::BookkeepingEntrySet
Create a Bookkeeping Entry Set.
-
#initialize(client:) ⇒ BookkeepingEntrySets
constructor
A new instance of BookkeepingEntrySets.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::BookkeepingEntrySet>
List Bookkeeping Entry Sets.
-
#retrieve(bookkeeping_entry_set_id, opts = {}) ⇒ Increase::Models::BookkeepingEntrySet
Retrieve a Bookkeeping Entry Set.
Constructor Details
#initialize(client:) ⇒ BookkeepingEntrySets
Returns a new instance of BookkeepingEntrySets.
6 7 8 |
# File 'lib/increase/resources/bookkeeping_entry_sets.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::BookkeepingEntrySet
Create a Bookkeeping Entry Set
21 22 23 24 25 26 27 28 |
# File 'lib/increase/resources/bookkeeping_entry_sets.rb', line 21 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/bookkeeping_entry_sets" req[:body] = params req[:model] = Increase::Models::BookkeepingEntrySet @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::BookkeepingEntrySet>
List Bookkeeping Entry Sets
59 60 61 62 63 64 65 66 67 |
# File 'lib/increase/resources/bookkeeping_entry_sets.rb', line 59 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/bookkeeping_entry_sets" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::BookkeepingEntrySet @client.request(req, opts) end |
#retrieve(bookkeeping_entry_set_id, opts = {}) ⇒ Increase::Models::BookkeepingEntrySet
Retrieve a Bookkeeping Entry Set
36 37 38 39 40 41 42 |
# File 'lib/increase/resources/bookkeeping_entry_sets.rb', line 36 def retrieve(bookkeeping_entry_set_id, opts = {}) req = {} req[:method] = :get req[:path] = "/bookkeeping_entry_sets/#{bookkeeping_entry_set_id}" req[:model] = Increase::Models::BookkeepingEntrySet @client.request(req, opts) end |