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