Sha256: e06e86173e12cee3b6a14281edbafe5c3d3cef7b9085ab59079f271f85373f16
Contents?: true
Size: 552 Bytes
Versions: 19
Compression:
Stored size: 552 Bytes
Contents
module Checkr class ReportList < APIList attr_accessor :parent api_instance_method :create, :post, :constructor => :Report, :default_params => :create_defaults, :arguments => [:package] def self.construct(json, parent=nil) lambda = constructor(:Report) instance = lambda.call(json) instance.parent = parent if parent instance.clear_changed_attributes instance end def path "/v1/reports" end def create_defaults { :candidate_id => parent.id } end end end
Version data entries
19 entries across 19 versions & 1 rubygems