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

912 B

Petstore::User

Properties

Name Type Description Notes
id Integer [optional]
username String [optional]
first_name String [optional]
last_name String [optional]
email String [optional]
password String [optional]
phone String [optional]
user_status Integer User Status [optional]

Code Sample

require 'Petstore'

instance = Petstore::User.new(id: null,
                                 username: null,
                                 first_name: null,
                                 last_name: null,
                                 email: null,
                                 password: null,
                                 phone: null,
                                 user_status: null)