Class: Raml::Body

Inherits:
Object
  • Object
show all
Defined in:
lib/raml/body.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

Returns the value of attribute content_type.



3
4
5
# File 'lib/raml/body.rb', line 3

def content_type
  @content_type
end

#exampleObject

Returns the value of attribute example.



3
4
5
# File 'lib/raml/body.rb', line 3

def example
  @example
end

#schemaObject

Returns the value of attribute schema.



3
4
5
# File 'lib/raml/body.rb', line 3

def schema
  @schema
end