Sha256: 411e7b4b351991dd3debf0b9039e15af994581d0e0173972de6a080c86536c2a
Contents?: true
Size: 296 Bytes
Versions: 7
Compression:
Stored size: 296 Bytes
Contents
module TaskManager class ApiConstraints def initialize(options) @version = options[:version] @default = options[:default] end def matches?(req) @default || req.headers['Accept'].include?("application/vnd.menglifang.com.cn; version=#{@version}") end end end
Version data entries
7 entries across 7 versions & 1 rubygems