Update readme of ruby client

This commit is contained in:
geekerzp 2015-08-18 14:35:54 +08:00
parent a481db7486
commit 31d948fc16

View File

@ -42,12 +42,12 @@ ruby -Ilib script.rb
```ruby ```ruby
require 'petstore' require 'petstore'
Petstore::ApiClient.default.configure do |client| Petstore.configure do |config|
client.api_key['api_key'] = 'special-key' config.api_key['api_key'] = 'special-key'
client.host = 'petstore.swagger.io' config.host = 'petstore.swagger.io'
client.base_path = '/v2' config.base_path = '/v2'
# enable debugging (default is disabled) # enable debugging (default is disabled)
client.debugging = true config.debugging = true
end end
pet_api = Petstore::PetApi.new pet_api = Petstore::PetApi.new