lib/checkr/candidate.rb in checkr-official-1.3.1 vs lib/checkr/candidate.rb in checkr-official-1.4.0

- old
+ new

@@ -16,19 +16,22 @@ attribute :previous_driver_license_state attribute :copy_requested attribute :custom_id attribute :reports, :ReportList, :nested => true attribute_writer_alias :report_ids, :reports - attribute :geos, APIList.constructor(:Geo) - attribute_writer_alias :geo_ids, :geos + attribute :geo_ids attribute :documents, :DocumentList, :nested => true, :default => {} attribute_writer_alias :document_ids, :documents api_class_method :all, :get, :constructor => APIList.constructor(:Candidate) api_class_method :create, :post api_class_method :retrieve, :get, ":path/:id", :arguments => [:id] api_instance_method :save, :post, :default_params => :changed_attributes + + def geos + APIList.constructor(:Geo).call(geo_ids) + end def self.path "/v1/candidates" end