Sha256: cff494c70c889b138acdcd52096551222cc697e86bbaa4653862fd9fd178303c
Contents?: true
Size: 413 Bytes
Versions: 12
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true require_relative 'base_component' module R2OAS module Routing class VerbComponent < BaseComponent def initialize(verb) super() @verb = verb end # e.x.) "" => ["get"] # e.x.) "POST" => ["post"] # e.x.) "GET|POST" => ["get","post"] def verbs (@verb.downcase.presence || 'get').split('|') end end end end
Version data entries
12 entries across 12 versions & 1 rubygems