class Tuersteher::PathAccessRule
Constants
- METHOD_NAMES
Attributes
path_spezification[R]
Public Class Methods
new(path)
click to toggle source
Zugriffsregel
path :all fuer beliebig, sonst String mit der http-path beginnen muss
Calls superclass method
Tuersteher::BaseAccessRule::new
# File lib/tuersteher.rb, line 665 def initialize(path) raise "wrong path '#{path}'! Must be a String or :all ." unless path==:all or path.is_a?(String) super() if path != :all # :all is only syntax sugar @path_spezification = PathSpecification.new(path, @negation) @rule_spezifications << @path_spezification end end
Public Instance Methods
method(http_method)
click to toggle source
set http-methode http_method http-Method, allowed is :get, :put, :delete, :post, :all
Calls superclass method
Tuersteher::BaseAccessRule#method
# File lib/tuersteher.rb, line 677 def method(http_method) raise "wrong method '#{http_method}'! Must be #{METHOD_NAMES.join(', ')} !" unless METHOD_NAMES.include?(http_method) super self end
to_s()
click to toggle source
Calls superclass method
Tuersteher::BaseAccessRule#to_s
# File lib/tuersteher.rb, line 683 def to_s @_to_s ||= super end