class ThreeScaleToolbox::Commands::ImportCommand::OpenAPI::CreateMappingRulesStep
Public Instance Methods
call()
click to toggle source
# File lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb, line 8 def call operations.each do |op| Entities::MappingRule.create(service: service, attrs: op.mapping_rule) puts "Created #{op.http_method} #{op.pattern} endpoint" end end