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.
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_data ⇒ Object (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_id ⇒ Object
Candidate ID
34 35 36 |
# File 'lib/fountain/background_check.rb', line 34 def candidate_id raw_data['candidate_id'] end |
#inspect ⇒ Object
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_id ⇒ Object
Report ID
39 40 41 |
# File 'lib/fountain/background_check.rb', line 39 def report_id raw_data['report_id'] end |
#status ⇒ Object
Status
24 25 26 |
# File 'lib/fountain/background_check.rb', line 24 def status raw_data['status'] end |
#title ⇒ Object
Title
19 20 21 |
# File 'lib/fountain/background_check.rb', line 19 def title raw_data['title'] end |
#vendor ⇒ Object
Vendor
29 30 31 |
# File 'lib/fountain/background_check.rb', line 29 def vendor raw_data['vendor'] end |