Module: BlockScore::Actions::Retrieve
- Included in:
- Candidate, Company, Person, QuestionSet
- Defined in:
- lib/blockscore/actions/retrieve.rb
Overview
Public: Provides a :retrieve class method to including classes.
Returns a instance of the desired class on success, raises an appropriate error otherwise.
Examples
person = BlockScore::Person.retrieve(‘abc123def456’)
> #<BlockScore::Person:0x007fe39c424410>
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
21 22 23 |
# File 'lib/blockscore/actions/retrieve.rb', line 21 def self.included(base) base.extend(ClassMethods) end |