update ruby sample

This commit is contained in:
wing328 2016-03-29 21:04:19 +08:00
parent 45e903b41b
commit 074ae7e95d
10 changed files with 11 additions and 29 deletions

View File

@ -6,9 +6,9 @@ This is a sample server Petstore server. You can find out more about Swagger at
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: 1.0.0
- API verion: 1.0.0
- Package version: 1.0.0
- Build date: 2016-03-30T20:58:00.549+08:00
- Build date: 2016-03-29T21:03:44.069+08:00
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
## Installation

View File

@ -96,9 +96,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -151,9 +151,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -86,9 +86,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -86,9 +86,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -96,9 +96,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -147,9 +147,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -151,9 +151,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -86,9 +86,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self

View File

@ -96,9 +96,7 @@ module Petstore
end
elsif !attributes[self.class.attribute_map[key]].nil?
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
else
# data not found in attributes(hash), not an issue as the data can be optional
end
end # or else data not found in attributes(hash), not an issue as the data can be optional
end
self