Class: Swaggard::Swagger::Parameters::Path
- Defined in:
- lib/swaggard/swagger/parameters/path.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(param_name) ⇒ Path
constructor
A new instance of Path.
Methods inherited from Base
Constructor Details
#initialize(param_name) ⇒ Path
Returns a new instance of Path.
10 11 12 13 14 15 16 |
# File 'lib/swaggard/swagger/parameters/path.rb', line 10 def initialize(param_name) @in = 'path' @name = param_name.to_s @data_type = 'string' @is_required = true @description = "Scope response to #{@name}" end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/swaggard/swagger/parameters/path.rb', line 8 def name @name end |