Class: Rack::JsonWebTokenAuth::ResourceHttpMethods
- Inherits:
-
Object
- Object
- Rack::JsonWebTokenAuth::ResourceHttpMethods
- Defined in:
- lib/rack/json_web_token_auth/contracts.rb
Overview
These are Symbols and include the special :any value
Class Method Summary collapse
Class Method Details
.to_s ⇒ Object
25 26 27 |
# File 'lib/rack/json_web_token_auth/contracts.rb', line 25 def self.to_s 'An array of allowed HTTP methods for initializing a Resource' end |
.valid?(val) ⇒ Boolean
21 22 23 |
# File 'lib/rack/json_web_token_auth/contracts.rb', line 21 def self.valid?(val) Contract.valid?(val, Contracts::ArrayOf[Contracts::Enum[:any, :get, :head, :post, :put, :patch, :delete, :options]]) end |