class Contracto::Contract::Request
Public Class Methods
new(hash)
click to toggle source
# File lib/contracto/contract/request.rb, line 2 def initialize(hash) @hash = hash end
Public Instance Methods
http_method()
click to toggle source
# File lib/contracto/contract/request.rb, line 6 def http_method @hash.fetch('method') end
url_pattern()
click to toggle source
# File lib/contracto/contract/request.rb, line 10 def url_pattern PathToSinatraPathAdapter.new(@hash.fetch('path')).sinatra_path end