Class: ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::Operation
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::Operation
- Includes:
- MappingRule, Method
- Defined in:
- lib/3scale_toolbox/commands/import_command/openapi/operation.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(operation) ⇒ Operation
constructor
A new instance of Operation.
- #set(key, val) ⇒ Object
Methods included from MappingRule
#delta, #http_method, #mapping_rule, #metric_id, #pattern, #public_base_path, #raw_pattern
Methods included from Method
#description, #friendly_name, #method, #operation_id, #system_name
Constructor Details
#initialize(operation) ⇒ Operation
Returns a new instance of Operation.
11 12 13 |
# File 'lib/3scale_toolbox/commands/import_command/openapi/operation.rb', line 11 def initialize(operation) @operation = operation end |
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
9 10 11 |
# File 'lib/3scale_toolbox/commands/import_command/openapi/operation.rb', line 9 def operation @operation end |
Instance Method Details
#set(key, val) ⇒ Object
15 16 17 |
# File 'lib/3scale_toolbox/commands/import_command/openapi/operation.rb', line 15 def set(key, val) operation[key] = val end |