Class: BlockScore::Candidate

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Includes:
Actions::All, Actions::Create, Actions::Delete, Actions::Retrieve, Actions::Update
Defined in:
lib/blockscore/candidate.rb

Constant Summary

Constants included from Actions::Update

Actions::Update::PERSISTENT_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods included from Actions::All

included

Methods included from Actions::Delete

#delete, #delete!

Methods included from Actions::Update

#filter_params, #save!

Methods included from Actions::Retrieve

included

Methods included from Actions::Create

included

Methods inherited from Base

api_url, endpoint, #initialize, #inspect, #refresh, resource, #save, #save!

Methods included from Connection

#delete, #get, #patch, #post, #put

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

#historyObject



13
14
15
# File 'lib/blockscore/candidate.rb', line 13

def history
  resource_member 'history'
end

#hitsObject



17
18
19
# File 'lib/blockscore/candidate.rb', line 17

def hits
  resource_member 'hits'
end

#search(options = {}) ⇒ Object



21
22
23
24
# File 'lib/blockscore/candidate.rb', line 21

def search(options = {})
  options[:candidate_id] = id
  post "#{api_url}watchlists", options
end