Sha256: fdff942a6076daddaef222a36c4b28d523c96ffa5492a6186c64d41383c2e4f8
Contents?: true
Size: 473 Bytes
Versions: 11
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module SwaggerDocsGenerator module Actions # # Test :consumes # # Complete consume field for action class Consumes < Actions VALUE = :consumes def initialize(data) super(VALUE) complete_hash(data) end private def complete_hash(data) default = ['application/json'] raw = data.key?(key) ? data[key] : default hash[key] = raw end end end end
Version data entries
11 entries across 11 versions & 1 rubygems