Class: Fountain::BackgroundCheck
- Inherits:
-
Object
- Object
- Fountain::BackgroundCheck
- Defined in:
- lib/fountain/background_check.rb
Overview
Fountain Background Check
Instance Attribute Summary collapse
-
#raw_data ⇒ Object
readonly
Raw background check data.
Instance Method Summary collapse
-
#candidate_id ⇒ Object
Candidate ID.
-
#initialize(data) ⇒ BackgroundCheck
constructor
A new instance of BackgroundCheck.
- #inspect ⇒ Object
-
#report_id ⇒ Object
Report ID.
-
#status ⇒ Object
Status.
-
#title ⇒ Object
Title.
-
#vendor ⇒ Object
Vendor.
Constructor Details
#initialize(data) ⇒ BackgroundCheck
Returns a new instance of BackgroundCheck.
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_data ⇒ Object (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_id ⇒ Object
Candidate ID
32 33 34 |
# File 'lib/fountain/background_check.rb', line 32 def candidate_id raw_data['candidate_id'] end |
#inspect ⇒ Object
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_id ⇒ Object
Report ID
37 38 39 |
# File 'lib/fountain/background_check.rb', line 37 def report_id raw_data['report_id'] end |
#status ⇒ Object
Status
22 23 24 |
# File 'lib/fountain/background_check.rb', line 22 def status raw_data['status'] end |
#title ⇒ Object
Title
17 18 19 |
# File 'lib/fountain/background_check.rb', line 17 def title raw_data['title'] end |
#vendor ⇒ Object
Vendor
27 28 29 |
# File 'lib/fountain/background_check.rb', line 27 def vendor raw_data['vendor'] end |