Skip to content

Commit f72e590

Browse files
committed
formatting
1 parent 01c956c commit f72e590

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

samples/client/petstore/ruby/models/pet.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def self.attribute_map
1717
def initialize(attributes = {})
1818
return if attributes.empty?
1919
# Morph attribute keys into undescored rubyish style
20+
2021
if self.class.attribute_map[:"id"]
2122
@id = attributes["id"]
2223
end

samples/client/petstore/ruby/spec/pet_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050

5151
pet = PetApi.getPetById(100)
5252
pet.id.should == 100
53+
pet.name.should == "Gorilla"
5354
end
5455
end
5556
end

0 commit comments

Comments
 (0)