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