Class: RamlParser::Model::NamedParameter
- Inherits:
-
Object
- Object
- RamlParser::Model::NamedParameter
- Defined in:
- lib/raml_parser/model.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#enum ⇒ Object
Returns the value of attribute enum.
-
#example ⇒ Object
Returns the value of attribute example.
-
#max_length ⇒ Object
Returns the value of attribute max_length.
-
#maximum ⇒ Object
Returns the value of attribute maximum.
-
#min_length ⇒ Object
Returns the value of attribute min_length.
-
#minimum ⇒ Object
Returns the value of attribute minimum.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#repeat ⇒ Object
Returns the value of attribute repeat.
-
#required ⇒ Object
Returns the value of attribute required.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type = nil, display_name = nil, description = nil, required = false, default = nil, example = nil, min_length = nil, max_length = nil, minimum = nil, maximum = nil, repeat = nil, enum = nil, pattern = nil) ⇒ NamedParameter
constructor
A new instance of NamedParameter.
Constructor Details
#initialize(name, type = nil, display_name = nil, description = nil, required = false, default = nil, example = nil, min_length = nil, max_length = nil, minimum = nil, maximum = nil, repeat = nil, enum = nil, pattern = nil) ⇒ NamedParameter
Returns a new instance of NamedParameter.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/raml_parser/model.rb', line 112 def initialize(name, type = nil, display_name = nil, description = nil, required = false, default = nil, example = nil, min_length = nil, max_length = nil, minimum = nil, maximum = nil, repeat = nil, enum = nil, pattern = nil) @name = name @type = type @display_name = display_name @description = description @required = required @default = default @example = example @min_length = min_length @max_length = max_length @minimum = minimum @maximum = maximum @repeat = repeat @enum = enum @pattern = pattern end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def default @default end |
#description ⇒ Object
Returns the value of attribute description.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def description @description end |
#display_name ⇒ Object
Returns the value of attribute display_name.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def display_name @display_name end |
#enum ⇒ Object
Returns the value of attribute enum.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def enum @enum end |
#example ⇒ Object
Returns the value of attribute example.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def example @example end |
#max_length ⇒ Object
Returns the value of attribute max_length.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def max_length @max_length end |
#maximum ⇒ Object
Returns the value of attribute maximum.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def maximum @maximum end |
#min_length ⇒ Object
Returns the value of attribute min_length.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def min_length @min_length end |
#minimum ⇒ Object
Returns the value of attribute minimum.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def minimum @minimum end |
#name ⇒ Object
Returns the value of attribute name.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def name @name end |
#pattern ⇒ Object
Returns the value of attribute pattern.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def pattern @pattern end |
#repeat ⇒ Object
Returns the value of attribute repeat.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def repeat @repeat end |
#required ⇒ Object
Returns the value of attribute required.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def required @required end |
#type ⇒ Object
Returns the value of attribute type.
110 111 112 |
# File 'lib/raml_parser/model.rb', line 110 def type @type end |