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

1.3 KiB

Petstore::FormatTest

Properties

Name Type Description Notes
integer Integer [optional]
int32 Integer [optional]
int64 Integer [optional]
number Float
float Float [optional]
double Float [optional]
string String [optional]
byte String
binary File [optional]
date Date
date_time DateTime [optional]
uuid String [optional]
password String

Code Sample

require 'Petstore'

instance = Petstore::FormatTest.new(integer: null,
                                 int32: null,
                                 int64: null,
                                 number: null,
                                 float: null,
                                 double: null,
                                 string: null,
                                 byte: null,
                                 binary: null,
                                 date: null,
                                 date_time: null,
                                 uuid: 72f98069-206d-4f12-9f12-3d1e525a8e84,
                                 password: null)