Sha256: 16205b71a4ec696a765b4a1e60538efddde4eb9bd734c69dd9eae25fbd2fbf58

Contents?: true

Size: 426 Bytes

Versions: 11

Compression:

Stored size: 426 Bytes

Contents

module Checkr
  class Package < APIResource

    attribute :name
    attribute :slug
    attribute :price
    attribute :screenings

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

    def self.path
      "/v1/packages"
    end

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

Version data entries

11 entries across 11 versions & 1 rubygems

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