Module: BlockScore::Actions::Create

Included in:
Candidate, Company, Person, QuestionSet
Defined in:
lib/blockscore/actions/create.rb

Overview

Public: Provides a :create class method which creates a new instance of the desired class using the BlockScore API.

Examples

candidate = BlockScore::Candidate.create(

note: "12341234",
ssn: "0001",
date_of_birth: "1940-08-11",
name_first: "John",
name_middle: "",
name_last: "Bredenkamp",
address_street1: "1 Infinite Loop",
address_city: "Cupertino",
address_country_code: "US"

)

> <BlockScore::Candidate:0x007fe39c424410>

Returns an instance of the desired class.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



29
30
31
# File 'lib/blockscore/actions/create.rb', line 29

def self.included(base)
  base.extend(ClassMethods)
end