Sha256: 058a4751eff1890303a2ab13b71c91533a565532c21bd8e2769b51f3ffc840e8
Contents?: true
Size: 581 Bytes
Versions: 20
Compression:
Stored size: 581 Bytes
Contents
# encoding: utf-8 module Hyperdrive class Filter < Param def initialize(name, description, options = {}) @name = name.to_s @description = description options = default_options.merge(options) @required = if options[:required] == true %w(GET HEAD) elsif options[:required] == false [] else Array(options[:required]) end @type = options[:type] @constraints = "#{required_constraint} #{options[:constraints]}" end end end
Version data entries
20 entries across 20 versions & 1 rubygems