Class: Raml::QueryParameter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#exampleObject

Returns the value of attribute example.



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

def example
  @example
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#requiredObject

Returns the value of attribute required.



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

def required
  @required
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end