Sha256: 2166dfe594183c4886f5390a3b5973894164f88b4387c6bab62910cedd3ad65b

Contents?: true

Size: 279 Bytes

Versions: 9

Compression:

Stored size: 279 Bytes

Contents

require 'open_pay_resource'

class Plans  < OpenPayResource

  def update(plan,plan_id)
    put(plan, "#{plan_id}")
  end

  def each_subscription(plan_id)
    get("#{plan_id}/subscriptions")
  end

  def all_subscriptions(plan_id)
    get("#{plan_id}/subscriptions")
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
openpay-2.0.1 lib/openpay/plans.rb
openpay-2.0.0 lib/openpay/plans.rb
openpay-2.0.0b lib/openpay/plans.rb
openpay-1.0.10 lib/openpay/plans.rb
openpay-1.0.8 lib/openpay/plans.rb
openpay-1.0.7 lib/openpay/plans.rb
openpay-1.0.6 lib/openpay/plans.rb
openpay-1.0.5 lib/openpay/plans.rb
openpay-1.0.4 lib/openpay/plans.rb