Module: Fulcrum::Actions::List
- Extended by:
- ActiveSupport::Concern
- Included in:
- Changeset, ChoiceList, ClassificationSet, Form, Layer, MediaResource, Membership, Project, Record, Webhook
- Defined in:
- lib/fulcrum/actions/list.rb
Constant Summary collapse
- DEFAULT_PER_PAGE =
250
Instance Method Summary collapse
Instance Method Details
#all(params = default_list_params) ⇒ Object
12 13 14 15 16 |
# File 'lib/fulcrum/actions/list.rb', line 12 def all(params = default_list_params) result = call(:get, collection, default_list_params.merge(params)) Page.new(result, resources_name) end |
#default_list_params ⇒ Object
8 9 10 |
# File 'lib/fulcrum/actions/list.rb', line 8 def default_list_params { per_page: DEFAULT_PER_PAGE } end |