Sha256: 7ad4e802f68d7b1c86263c9e584a9536342dee7c770623daa31306ac09782b0c

Contents?: true

Size: 480 Bytes

Versions: 9

Compression:

Stored size: 480 Bytes

Contents

module Checkr
  class VerificationList < 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(:Verification)
      instance = lambda.call(json)
      instance.parent = parent if parent
      instance.clear_changed_attributes
      instance
    end

    def path
      parent.path + "/verifications"
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
checkr-official-1.8.0 lib/checkr/verification_list.rb
checkr-official-1.7.1 lib/checkr/verification_list.rb
checkr-official-1.7 lib/checkr/verification_list.rb
checkr-official-1.6 lib/checkr/verification_list.rb
checkr-official-1.5.4 lib/checkr/verification_list.rb
checkr-official-1.5.3 lib/checkr/verification_list.rb
checkr-official-1.5.2 lib/checkr/verification_list.rb
checkr-official-1.5.1 lib/checkr/verification_list.rb
checkr-official-1.5.0 lib/checkr/verification_list.rb