Class: Raml::Parser::Response

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/raml/parser/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



11
12
13
# File 'lib/raml/parser/response.rb', line 11

def attributes
  @attributes
end

#responseObject

Returns the value of attribute response.



11
12
13
# File 'lib/raml/parser/response.rb', line 11

def response
  @response
end

Instance Method Details

#parse(code, attributes) ⇒ Object



13
14
15
16
17
18
# File 'lib/raml/parser/response.rb', line 13

def parse(code, attributes)
  @response = Raml::Response.new(code)
  @attributes = prepare_attributes(attributes)
  parse_attributes
  response
end