class Stripe::CLI::Commands::Plans

Public Instance Methods

create() click to toggle source
Calls superclass method Stripe::CLI::Command#create
# File lib/stripe/cli/commands/plans.rb, line 36
def create
  options[:amount]   = convert_amount(options[:amount])
  options[:name]   ||= ask('Plan name:')
  options[:id]     ||= ask('Plan id:')

  super Stripe::Plan, options
end
delete(plan_id) click to toggle source
Calls superclass method Stripe::CLI::Command#delete
# File lib/stripe/cli/commands/plans.rb, line 23
def delete plan_id
  super Stripe::Plan, plan_id
end
find(plan_id) click to toggle source
Calls superclass method Stripe::CLI::Command#find
# File lib/stripe/cli/commands/plans.rb, line 18
def find plan_id
  super Stripe::Plan, plan_id
end
list() click to toggle source
Calls superclass method Stripe::CLI::Command#list
# File lib/stripe/cli/commands/plans.rb, line 13
def list
  super Stripe::Plan, options
end