Class: Fountain::BackgroundCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/fountain/background_check.rb

Overview

Fountain Background Check

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ BackgroundCheck

Returns a new instance of BackgroundCheck.

Parameters:

  • data (Hash)

    Raw background check data



14
15
16
# File 'lib/fountain/background_check.rb', line 14

def initialize(data)
  @raw_data = Util.stringify_hash_keys data
end

Instance Attribute Details

#raw_dataObject (readonly)

Raw background check data



9
10
11
# File 'lib/fountain/background_check.rb', line 9

def raw_data
  @raw_data
end

Instance Method Details

#candidate_idObject

Candidate ID



34
35
36
# File 'lib/fountain/background_check.rb', line 34

def candidate_id
  raw_data['candidate_id']
end

#inspectObject



43
44
45
46
47
48
49
50
51
# File 'lib/fountain/background_check.rb', line 43

def inspect
  format(
    '#<%<class_name>s:0x%<object_id>p @title="%<title>s" @status="%<status>s">',
    class_name: self.class.name,
    object_id: object_id,
    title: title,
    status: status
  )
end

#report_idObject

Report ID



39
40
41
# File 'lib/fountain/background_check.rb', line 39

def report_id
  raw_data['report_id']
end

#statusObject

Status



24
25
26
# File 'lib/fountain/background_check.rb', line 24

def status
  raw_data['status']
end

#titleObject

Title



19
20
21
# File 'lib/fountain/background_check.rb', line 19

def title
  raw_data['title']
end

#vendorObject

Vendor



29
30
31
# File 'lib/fountain/background_check.rb', line 29

def vendor
  raw_data['vendor']
end