Sha256: 7274fc8541408fee8dca5ac9f6c26a0c865d3cb4d097161362a056e0cef0d26c

Contents?: true

Size: 571 Bytes

Versions: 11

Compression:

Stored size: 571 Bytes

Contents

module Checkr
  class Program < APIResource

    attribute :name
    attribute :created_at
    attribute :deleted_at
    attribute :geos, APIList.constructor(:Geo)
    attribute_writer_alias :geo_ids, :geos
    attribute :packages, APIList.constructor(:Package)
    attribute_writer_alias :package_ids, :packages

    api_class_method :all, :get, :constructor => APIList.constructor(:Program)
    api_class_method :retrieve, :get, ":path/:id", :arguments => [:id]

    def self.path
      "/v1/programs"
    end

    APIClass.register_subclass(self, 'program')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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