Class: Stripe::CLI::Commands::Plans
- Inherits:
-
Stripe::CLI::Command
- Object
- Thor
- Stripe::CLI::Command
- Stripe::CLI::Commands::Plans
- Includes:
- Utils
- Defined in:
- lib/stripe/cli/commands/plans.rb
Instance Method Summary collapse
Methods inherited from Stripe::CLI::Command
Instance Method Details
#create ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/stripe/cli/commands/plans.rb', line 36 def create [:amount] = convert_amount([:amount]) [:name] ||= ask('Plan name:') [:id] ||= ask('Plan id:') super Stripe::Plan, end |
#delete(plan_id) ⇒ Object
23 24 25 |
# File 'lib/stripe/cli/commands/plans.rb', line 23 def delete plan_id super Stripe::Plan, plan_id end |
#find(plan_id) ⇒ Object
18 19 20 |
# File 'lib/stripe/cli/commands/plans.rb', line 18 def find plan_id super Stripe::Plan, plan_id end |
#list ⇒ Object
13 14 15 |
# File 'lib/stripe/cli/commands/plans.rb', line 13 def list super Stripe::Plan, end |