Class: Stripe::CLI::Command
- Inherits:
-
Thor
- Object
- Thor
- Stripe::CLI::Command
- Defined in:
- lib/stripe/cli/command.rb
Direct Known Subclasses
Stripe::CLI::Commands::Balance, Stripe::CLI::Commands::Cards, Stripe::CLI::Commands::Charges, Stripe::CLI::Commands::Coupons, Stripe::CLI::Commands::Customers, Stripe::CLI::Commands::Events, Stripe::CLI::Commands::InvoiceItems, Stripe::CLI::Commands::Invoices, Stripe::CLI::Commands::Plans, Stripe::CLI::Commands::Recipients, Stripe::CLI::Commands::Refunds, Stripe::CLI::Commands::Subscriptions, Stripe::CLI::Commands::Tokens, Stripe::CLI::Commands::Transactions, Stripe::CLI::Commands::Transfers, Stripe::CLI::Commands::Version
Constant Summary collapse
- @@root_config =
::File.('~/.stripecli')
- @@local_config =
::File.('./.stripecli')
Instance Method Summary collapse
Instance Method Details
#inspect(object) ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/stripe/cli/command.rb', line 87 def inspect object case object when Array object.map {|o| inspect(o) } when Hash handle_hash object when Stripe::ListObject inspect object.data when Stripe::StripeObject inspect object.instance_variable_get(:@values) when Numeric object > 1000000000 ? handle_date(object) : object else object end end |