Class: Raml::Parser::QueryParameter
- Inherits:
-
Object
- Object
- Raml::Parser::QueryParameter
- Includes:
- Util
- Defined in:
- lib/raml/parser/query_parameter.rb
Constant Summary collapse
- BASIC_ATTRIBUTES =
%w[description type example required]
- IGNORED_ATTRIBUTES =
%w[properties default]
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#query_parameter ⇒ Object
Returns the value of attribute query_parameter.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
13 14 15 |
# File 'lib/raml/parser/query_parameter.rb', line 13 def attributes @attributes end |
#query_parameter ⇒ Object
Returns the value of attribute query_parameter.
13 14 15 |
# File 'lib/raml/parser/query_parameter.rb', line 13 def query_parameter @query_parameter end |
Instance Method Details
#parse(name, attributes) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/raml/parser/query_parameter.rb', line 15 def parse(name, attributes) @query_parameter = Raml::QueryParameter.new(name) @attributes = prepare_attributes(attributes) parse_attributes(attributes) query_parameter end |