William Cheng 9e2a9e1515
[Ruby] various improvements (#2226)
* add to_s in api error class

* rename variable to align with code sample

* fix initalize, better validation

* update petstore samples

* add code sample for model

* add auto-generated travis file

* improve error message

* add travis file

* uncomment to_s
2019-02-27 03:38:20 +08:00

747 B

Petstore::Order

Properties

Name Type Description Notes
id Integer [optional]
pet_id Integer [optional]
quantity Integer [optional]
ship_date DateTime [optional]
status String Order Status [optional]
complete BOOLEAN [optional] [default to false]

Code Sample

require 'Petstore'

instance = Petstore::Order.new(id: null,
                                 pet_id: null,
                                 quantity: null,
                                 ship_date: null,
                                 status: null,
                                 complete: null)