Class: Checkr::ReportList
- Defined in:
- lib/checkr/report_list.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Attributes inherited from APIList
Attributes inherited from APIClass
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from APIList
#[], #[]=, constructor, #each, #last, #length, #refresh_from, #refresh_from_array, #refresh_from_hash
Methods inherited from APIClass
api_class_method, api_instance_method, attribute, attribute_aliases, attribute_names, attribute_writer_alias, attribute_writer_names, #attributes, #changed_attribute_names, #changed_attributes, changed_lambda, #clear_changed_attributes, #construct, #initialize, #inspect, #mark_attribute_changed, #non_nil_attributes, path, #refresh_from, register_subclass, subclass_fetch, subclasses, #to_json, #to_s
Constructor Details
This class inherits a constructor from Checkr::APIClass
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
4 5 6 |
# File 'lib/checkr/report_list.rb', line 4 def parent @parent end |
Class Method Details
.construct(json, parent = nil) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/checkr/report_list.rb', line 8 def self.construct(json, parent=nil) lambda = constructor(:Report) instance = lambda.call(json) instance.parent = parent if parent instance.clear_changed_attributes instance end |
Instance Method Details
#create_defaults ⇒ Object
20 21 22 23 24 |
# File 'lib/checkr/report_list.rb', line 20 def create_defaults { :candidate_id => parent.id } end |
#path ⇒ Object
16 17 18 |
# File 'lib/checkr/report_list.rb', line 16 def path "/v1/reports" end |