example/example.rb in bitstampede-0.1.2 vs example/example.rb in bitstampede-0.1.3
- old
+ new
@@ -5,11 +5,11 @@
def initialize &block
validate_env_vars
client = Bitstampede::Client.new
client.key = key
client.secret = secret
- output block.call(client).inspect
+ output block.call(client)
end
private
def validate_env_vars
print_env_var_message if missing_either_var?
@@ -41,8 +41,12 @@
MSG
exit(1)
end
def output(message)
- STDOUT.puts message
+ if(message.is_a?(String))
+ STDOUT.puts message
+ else
+ STDOUT.puts message.inspect
+ end
end
end