class Checkr::ReportList

Attributes

parent[RW]

Public Class Methods

construct(json, parent=nil) click to toggle source
# 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

Public Instance Methods

create_defaults() click to toggle source
# File lib/checkr/report_list.rb, line 20
def create_defaults
  {
    :candidate_id => parent.id
  }
end
path() click to toggle source
# File lib/checkr/report_list.rb, line 16
def path
  "/v1/reports"
end