Class: Contracto::Contract::Request
- Inherits:
-
Object
- Object
- Contracto::Contract::Request
- Defined in:
- lib/contracto/contract.rb
Instance Method Summary collapse
- #http_method ⇒ Object
-
#initialize(hash) ⇒ Request
constructor
A new instance of Request.
- #url_pattern ⇒ Object
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_method ⇒ Object
24 25 26 |
# File 'lib/contracto/contract.rb', line 24 def http_method @hash.fetch('http_method') end |
#url_pattern ⇒ Object
28 29 30 |
# File 'lib/contracto/contract.rb', line 28 def url_pattern @hash.fetch('path') end |