Class: Increase::Resources::Exports
- Inherits:
-
Object
- Object
- Increase::Resources::Exports
- Defined in:
- lib/increase/resources/exports.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::Export
Create an Export.
-
#initialize(client:) ⇒ Exports
constructor
A new instance of Exports.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::Export>
List Exports.
-
#retrieve(export_id, opts = {}) ⇒ Increase::Models::Export
Retrieve an Export.
Constructor Details
#initialize(client:) ⇒ Exports
Returns a new instance of Exports.
6 7 8 |
# File 'lib/increase/resources/exports.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::Export
Create an Export
28 29 30 31 32 33 34 35 |
# File 'lib/increase/resources/exports.rb', line 28 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/exports" req[:body] = params req[:model] = Increase::Models::Export @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::Export>
List Exports
68 69 70 71 72 73 74 75 76 |
# File 'lib/increase/resources/exports.rb', line 68 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/exports" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::Export @client.request(req, opts) end |
#retrieve(export_id, opts = {}) ⇒ Increase::Models::Export
Retrieve an Export
43 44 45 46 47 48 49 |
# File 'lib/increase/resources/exports.rb', line 43 def retrieve(export_id, opts = {}) req = {} req[:method] = :get req[:path] = "/exports/#{export_id}" req[:model] = Increase::Models::Export @client.request(req, opts) end |