Class: Stripe::CLI::Command

Inherits:
Thor
  • Object
show all
Defined in:
lib/stripe/cli/command.rb

Constant Summary collapse

@@root_config =
::File.expand_path('~/.stripecli')
@@local_config =
::File.expand_path('./.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