Module: BlockScore::Actions::All
- Included in:
- Candidate, Company, Person, QuestionSet
- Defined in:
- lib/blockscore/actions/all.rb
Overview
Public: Provides an :all action to including Classes.
The :all method returns up to 25 items from the BlockScore API for the given class.
:all accepts an options hash, which responds to the following options:
count - Fixnum number of items to return per page. offset - Fixnum number of items to skip before returning @count items.
If no count is provided, 25 items are returned, or all items if the total number of items is 25 of fewer.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
22 23 24 |
# File 'lib/blockscore/actions/all.rb', line 22 def self.included(base) base.extend(ClassMethods) end |