Module: IRT::Helpers::Rails
- Defined in:
- lib/irt/helpers/rails.rb
Instance Method Summary collapse
- #delete(*args) ⇒ Object
- #get(*args) ⇒ Object
- #path(*args) ⇒ Object
- #post(*args) ⇒ Object
- #response ⇒ Object
Instance Method Details
#delete(*args) ⇒ Object
14 15 16 |
# File 'lib/irt/helpers/rails.rb', line 14 def delete(*args) app.delete path(*args) end |
#get(*args) ⇒ Object
10 11 12 |
# File 'lib/irt/helpers/rails.rb', line 10 def get(*args) app.get path(*args) end |
#path(*args) ⇒ Object
18 19 20 21 |
# File 'lib/irt/helpers/rails.rb', line 18 def path(*args) path = args.shift app.send("#{path}_path", *args) end |
#post(*args) ⇒ Object
5 6 7 8 |
# File 'lib/irt/helpers/rails.rb', line 5 def post(*args) data = args.pop app.post path(*args), data end |
#response ⇒ Object
23 24 25 |
# File 'lib/irt/helpers/rails.rb', line 23 def response app.response.body end |