We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c956c commit f72e590Copy full SHA for f72e590
samples/client/petstore/ruby/models/pet.rb
@@ -17,6 +17,7 @@ def self.attribute_map
17
def initialize(attributes = {})
18
return if attributes.empty?
19
# Morph attribute keys into undescored rubyish style
20
+
21
if self.class.attribute_map[:"id"]
22
@id = attributes["id"]
23
end
samples/client/petstore/ruby/spec/pet_spec.rb
@@ -50,6 +50,7 @@
50
51
pet = PetApi.getPetById(100)
52
pet.id.should == 100
53
+ pet.name.should == "Gorilla"
54
55
56
0 commit comments