Sha256: 0cb662fb0b375b0f1ae025556af03275220ffaffb6335716cdcfea6c0d8ebe39
Contents?: true
Size: 737 Bytes
Versions: 16
Compression:
Stored size: 737 Bytes
Contents
module ThreeScaleToolbox module Commands module ImportCommand module OpenAPI module Method def method { 'friendly_name' => friendly_name, 'description' => description, 'system_name' => system_name } end def friendly_name operation[:operationId] || operation_id end def system_name friendly_name.downcase.gsub(/[^\w]/, '_') end def operation_id "#{operation[:verb]}#{operation[:path].gsub(/[^\w]/, '')}" end def description String(operation[:description]) end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems