Sha256: 2c1934a9441de49d4ec6ce86f3d91c74c9828ce3b05b1319f2a719331c439a6a

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

module Checkr
  class AdverseItemList < APIList

    attribute :next_href
    attribute :previous_href
    attribute :count
    attr_accessor :parent

    api_instance_method :all, :get

    def self.construct(json, parent=nil)
      lambda = constructor(:AdverseItem)
      instance = lambda.call(json)
      instance.parent = parent if parent
      instance.clear_changed_attributes
      instance
    end

    def path
      parent.path + '/adverse_items'
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
checkr-official-1.8.0 lib/checkr/adverse_item_list.rb
checkr-official-1.7.1 lib/checkr/adverse_item_list.rb
checkr-official-1.7 lib/checkr/adverse_item_list.rb