class MagicResource::PathWithHttpVerb

Attributes

http_verb[R]

Public Class Methods

new(http_verb, path) click to toggle source
Calls superclass method
# File lib/magic-resource/path_with_http_verb.rb, line 5
def initialize(http_verb, path)
  @http_verb = http_verb.kind_of?(self.class) ?
    http_verb.http_verb :
    http_verb.source.scan(/\w+/).first.try(:downcase).try(:to_sym)

  super(path)
end