Class: Swaggard::Swagger::ResponseHeader
- Inherits:
-
Object
- Object
- Swaggard::Swagger::ResponseHeader
- Defined in:
- lib/swaggard/swagger/response_header.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(string) ⇒ ResponseHeader
constructor
A new instance of ResponseHeader.
- #to_doc ⇒ Object
Constructor Details
#initialize(string) ⇒ ResponseHeader
Returns a new instance of ResponseHeader.
6 7 8 |
# File 'lib/swaggard/swagger/response_header.rb', line 6 def initialize(string) parse(string) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/swaggard/swagger/response_header.rb', line 4 def name @name end |
Instance Method Details
#to_doc ⇒ Object
10 11 12 13 14 15 |
# File 'lib/swaggard/swagger/response_header.rb', line 10 def to_doc { 'description' => @description, 'type' => @type, } end |