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



12
13
14
# File 'lib/fountain/background_check.rb', line 12

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

Instance Attribute Details

#raw_dataObject (readonly)

Raw background check data



7
8
9
# File 'lib/fountain/background_check.rb', line 7

def raw_data
  @raw_data
end

Instance Method Details

#candidate_idObject

Candidate ID



32
33
34
# File 'lib/fountain/background_check.rb', line 32

def candidate_id
  raw_data['candidate_id']
end

#inspectObject



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

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



37
38
39
# File 'lib/fountain/background_check.rb', line 37

def report_id
  raw_data['report_id']
end

#statusObject

Status



22
23
24
# File 'lib/fountain/background_check.rb', line 22

def status
  raw_data['status']
end

#titleObject

Title



17
18
19
# File 'lib/fountain/background_check.rb', line 17

def title
  raw_data['title']
end

#vendorObject

Vendor



27
28
29
# File 'lib/fountain/background_check.rb', line 27

def vendor
  raw_data['vendor']
end