Sha256: 9e9884de3c6546db639c712b19af908ec13ec65318e8f75abdb1a135fcc635e7

Contents?: true

Size: 630 Bytes

Versions: 13

Compression:

Stored size: 630 Bytes

Contents

module Checkr
  class Subscription < APIResource

    attribute :status
    attribute :values
    attribute :canceled_at
    attribute :package
    attribute :values
    attribute :interval_count
    attribute :interval_unit
    attribute :values
    attribute :start_date
    attribute :candidate, :Candidate
    attribute_writer_alias :candidate_id, :candidate

    api_class_method :retrieve, :get, ":path/:id", :arguments => [:id]
    api_class_method :create, :post

    api_instance_method :cancel, :delete

    def self.path
      "/v1/subscriptions"
    end

    APIClass.register_subclass(self, "subscription")
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
checkr-official-1.5.2 lib/checkr/subscription.rb
checkr-official-1.5.1 lib/checkr/subscription.rb
checkr-official-1.5.0 lib/checkr/subscription.rb
checkr-official-1.4.0 lib/checkr/subscription.rb
checkr-official-1.3.1 lib/checkr/subscription.rb
checkr-official-1.2.1 lib/checkr/subscription.rb
checkr-official-1.2.0 lib/checkr/subscription.rb
checkr-official-1.1.2 lib/checkr/subscription.rb
checkr-official-1.1.1 lib/checkr/subscription.rb
checkr-official-1.1.0 lib/checkr/subscription.rb
checkr-official-1.0.2 lib/checkr/subscription.rb
checkr-official-1.0.1 lib/checkr/subscription.rb
checkr-official-1.0.0 lib/checkr/subscription.rb