Class: Stripe::CLI::Commands::Tokens
- Inherits:
-
Stripe::CLI::Command
- Object
- Thor
- Stripe::CLI::Command
- Stripe::CLI::Commands::Tokens
- Includes:
- Utils
- Defined in:
- lib/stripe/cli/commands/tokens.rb
Instance Method Summary collapse
Methods inherited from Stripe::CLI::Command
Instance Method Details
#create(type) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/stripe/cli/commands/tokens.rb', line 23 def create type opt_symbol, value_hash = case type when 'card', 'credit_card', 'credit card' [ :card, credit_card( ) ] when 'account', 'bank_account', 'bank account' [ :bank_account, bank_account( ) ] end .delete_if {|option,_| strip_list.include? option } [opt_symbol] = value_hash super Stripe::Token, end |
#find(event_id) ⇒ Object
8 9 10 |
# File 'lib/stripe/cli/commands/tokens.rb', line 8 def find event_id super Stripe::Token, event_id end |