Class: Svelte::Operation
- Inherits:
-
Object
- Object
- Svelte::Operation
- Defined in:
- lib/svelte/operation.rb
Overview
Describes a Swagger API Operation
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Instance Method Summary collapse
-
#id ⇒ String
Operation identifier.
-
#initialize(verb:, properties:, path:) ⇒ Operation
constructor
Creates a new Operation.
Constructor Details
#initialize(verb:, properties:, path:) ⇒ Operation
Creates a new Operation.
12 13 14 15 16 17 |
# File 'lib/svelte/operation.rb', line 12 def initialize(verb:, properties:, path:) @verb = verb @properties = properties @path = path validate end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/svelte/operation.rb', line 6 def path @path end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
6 7 8 |
# File 'lib/svelte/operation.rb', line 6 def properties @properties end |
#verb ⇒ Object (readonly)
Returns the value of attribute verb.
6 7 8 |
# File 'lib/svelte/operation.rb', line 6 def verb @verb end |
Instance Method Details
#id ⇒ String
Operation identifier
21 22 23 |
# File 'lib/svelte/operation.rb', line 21 def id properties['operationId'] end |