Class: Raml::Body
- Inherits:
-
Object
- Object
- Raml::Body
- Defined in:
- lib/raml/body.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#example ⇒ Object
Returns the value of attribute example.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(content_type) ⇒ Body
constructor
A new instance of Body.
Constructor Details
#initialize(content_type) ⇒ Body
Returns a new instance of Body.
5 6 7 |
# File 'lib/raml/body.rb', line 5 def initialize(content_type) @content_type = content_type end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
3 4 5 |
# File 'lib/raml/body.rb', line 3 def content_type @content_type end |
#example ⇒ Object
Returns the value of attribute example.
3 4 5 |
# File 'lib/raml/body.rb', line 3 def example @example end |
#schema ⇒ Object
Returns the value of attribute schema.
3 4 5 |
# File 'lib/raml/body.rb', line 3 def schema @schema end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/raml/body.rb', line 3 def type @type end |