forked from loafle/openapi-generator-original
skip overwriting ruby spec files
This commit is contained in:
@@ -8,7 +8,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
|
||||
|
||||
- API version: 1.0.0
|
||||
- Package version: 1.0.0
|
||||
- Build date: 2016-04-26T10:05:22.048-07:00
|
||||
- Build date: 2016-04-29T11:03:36.514+08:00
|
||||
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
||||
|
||||
## Installation
|
||||
@@ -57,7 +57,7 @@ require 'petstore'
|
||||
|
||||
api_instance = Petstore::FakeApi.new
|
||||
|
||||
number = "number_example" # String | None
|
||||
number = 3.4 # Float | None
|
||||
|
||||
double = 1.2 # Float | None
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ require 'petstore'
|
||||
|
||||
api_instance = Petstore::FakeApi.new
|
||||
|
||||
number = "number_example" # String | None
|
||||
number = 3.4 # Float | None
|
||||
|
||||
double = 1.2 # Float | None
|
||||
|
||||
@@ -52,7 +52,7 @@ end
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**number** | **String**| None |
|
||||
**number** | **Float**| None |
|
||||
**double** | **Float**| None |
|
||||
**string** | **String**| None |
|
||||
**byte** | **String**| None |
|
||||
|
||||
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
||||
**binary** | **String** | | [optional]
|
||||
**date** | **Date** | |
|
||||
**date_time** | **DateTime** | | [optional]
|
||||
**uuid** | [**UUID**](UUID.md) | | [optional]
|
||||
**password** | **String** | |
|
||||
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ module Petstore
|
||||
|
||||
attr_accessor :date_time
|
||||
|
||||
attr_accessor :uuid
|
||||
|
||||
attr_accessor :password
|
||||
|
||||
# Attribute mapping from ruby-style variable name to JSON key.
|
||||
@@ -56,6 +58,7 @@ module Petstore
|
||||
:'binary' => :'binary',
|
||||
:'date' => :'date',
|
||||
:'date_time' => :'dateTime',
|
||||
:'uuid' => :'uuid',
|
||||
:'password' => :'password'
|
||||
}
|
||||
end
|
||||
@@ -74,6 +77,7 @@ module Petstore
|
||||
:'binary' => :'String',
|
||||
:'date' => :'Date',
|
||||
:'date_time' => :'DateTime',
|
||||
:'uuid' => :'UUID',
|
||||
:'password' => :'String'
|
||||
}
|
||||
end
|
||||
@@ -130,6 +134,10 @@ module Petstore
|
||||
self.date_time = attributes[:'dateTime']
|
||||
end
|
||||
|
||||
if attributes.has_key?(:'uuid')
|
||||
self.uuid = attributes[:'uuid']
|
||||
end
|
||||
|
||||
if attributes.has_key?(:'password')
|
||||
self.password = attributes[:'password']
|
||||
end
|
||||
@@ -354,6 +362,7 @@ module Petstore
|
||||
binary == o.binary &&
|
||||
date == o.date &&
|
||||
date_time == o.date_time &&
|
||||
uuid == o.uuid &&
|
||||
password == o.password
|
||||
end
|
||||
|
||||
@@ -366,7 +375,7 @@ module Petstore
|
||||
# Calculates hash code according to all attributes.
|
||||
# @return [Fixnum] Hash code
|
||||
def hash
|
||||
[integer, int32, int64, number, float, double, string, byte, binary, date, date_time, password].hash
|
||||
[integer, int32, int64, number, float, double, string, byte, binary, date, date_time, uuid, password].hash
|
||||
end
|
||||
|
||||
# Builds the object from hash
|
||||
|
||||
Reference in New Issue
Block a user