Class: Contracto::Contract::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/contracto/contract.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Request



20
21
22
# File 'lib/contracto/contract.rb', line 20

def initialize(hash)
  @hash = hash
end

Instance Method Details

#http_methodObject



24
25
26
# File 'lib/contracto/contract.rb', line 24

def http_method
  @hash.fetch('http_method')
end

#url_patternObject



28
29
30
# File 'lib/contracto/contract.rb', line 28

def url_pattern
  @hash.fetch('path')
end