Class: Lipdub::Resources::Projects
- Defined in:
- lib/lipdub/resources/projects.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#list(page: 1, per_page: 20) ⇒ Hash
List all projects.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Lipdub::Resources::Base
Instance Method Details
#list(page: 1, per_page: 20) ⇒ Hash
List all projects
35 36 37 38 39 40 41 42 43 |
# File 'lib/lipdub/resources/projects.rb', line 35 def list(page: 1, per_page: 20) validate_pagination_params!(page, per_page) params = { page: page, per_page: per_page } get("/v1/projects", params) end |