Class: BlockScore::Candidate
- Extended by:
- Forwardable
- Defined in:
- lib/blockscore/candidate.rb
Constant Summary
Constants included from Actions::Update
Actions::Update::PERSISTENT_ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Actions::All
Methods included from Actions::Delete
Methods included from Actions::Update
Methods included from Actions::Retrieve
Methods included from Actions::Create
Methods inherited from Base
api_url, endpoint, #initialize, #inspect, #refresh, resource, #save, #save!
Methods included from Connection
Constructor Details
This class inherits a constructor from BlockScore::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BlockScore::Base
Instance Method Details
#history ⇒ Object
| 13 14 15 | # File 'lib/blockscore/candidate.rb', line 13 def history resource_member 'history' end | 
#hits ⇒ Object
| 17 18 19 | # File 'lib/blockscore/candidate.rb', line 17 def hits resource_member 'hits' end | 
#search(options = {}) ⇒ Object
| 21 22 23 | # File 'lib/blockscore/candidate.rb', line 21 def search( = {}) post "#{api_url}watchlists", .merge(candidate_id: id) end |