module ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::Method
Public Instance Methods
description()
click to toggle source
# File lib/3scale_toolbox/commands/import_command/openapi/method.rb, line 26 def description String(operation[:description]) end
friendly_name()
click to toggle source
# File lib/3scale_toolbox/commands/import_command/openapi/method.rb, line 14 def friendly_name operation[:operationId] || operation_id end
method()
click to toggle source
# File lib/3scale_toolbox/commands/import_command/openapi/method.rb, line 6 def method { 'friendly_name' => friendly_name, 'description' => description, 'system_name' => system_name } end
operation_id()
click to toggle source
# File lib/3scale_toolbox/commands/import_command/openapi/method.rb, line 22 def operation_id "#{operation[:verb]}#{operation[:path].gsub(/[^\w]/, '')}" end
system_name()
click to toggle source
# File lib/3scale_toolbox/commands/import_command/openapi/method.rb, line 18 def system_name friendly_name.downcase.gsub(/[^\w]/, '_') end