Class: ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::Operation

Inherits:
Object
  • Object
show all
Includes:
MappingRule, Method
Defined in:
lib/3scale_toolbox/commands/import_command/openapi/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#operationObject (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