Class: Swagger::V2::Response
- Inherits:
-
DefinitionSection
- Object
- Hashie::Dash
- DefinitionSection
- Swagger::V2::Response
- Defined in:
- lib/swagger/v2/response.rb
Instance Attribute Summary
Attributes inherited from DefinitionSection
Instance Method Summary collapse
Methods inherited from DefinitionSection
#initialize, required_section, section
Methods included from Attachable
#attach_parent, #attach_to_children, #root
Constructor Details
This class inherits a constructor from Swagger::DefinitionSection
Instance Method Details
#status_code ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/swagger/v2/response.rb', line 11 def status_code code = parent.responses.key self code = '200' if code == 'default' code.to_i rescue # TODO: Warning? 200 end |