Class: Svelte::Path
- Inherits:
-
Object
- Object
- Svelte::Path
- Defined in:
- lib/svelte/path.rb
Overview
Describes a Swagger API Path
Instance Attribute Summary collapse
-
#non_parameter_elements ⇒ Object
readonly
Returns the value of attribute non_parameter_elements.
-
#parameter_elements ⇒ Object
readonly
Returns the value of attribute parameter_elements.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, operations:) ⇒ Path
constructor
Creates a new Path.
-
#operations ⇒ Array<Operation>
Path operations.
Constructor Details
#initialize(path:, operations:) ⇒ Path
Creates a new Path.
11 12 13 14 15 |
# File 'lib/svelte/path.rb', line 11 def initialize(path:, operations:) @path = path separate_path_elements @raw_operations = operations end |
Instance Attribute Details
#non_parameter_elements ⇒ Object (readonly)
Returns the value of attribute non_parameter_elements.
6 7 8 |
# File 'lib/svelte/path.rb', line 6 def non_parameter_elements @non_parameter_elements end |
#parameter_elements ⇒ Object (readonly)
Returns the value of attribute parameter_elements.
6 7 8 |
# File 'lib/svelte/path.rb', line 6 def parameter_elements @parameter_elements end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/svelte/path.rb', line 6 def path @path end |