Module: HttpMimic::InstanceMethods
- Defined in:
- lib/http_mimic.rb
Instance Method Summary collapse
- #delete(url, options = {}) ⇒ Object
- #get(url, options = {}) ⇒ Object
- #head(url, options = {}) ⇒ Object
- #options(url, options = {}) ⇒ Object
- #patch(url, options = {}) ⇒ Object
- #post(url, options = {}) ⇒ Object
- #put(url, options = {}) ⇒ Object
- #request(method, url, options = {}) ⇒ Object
Instance Method Details
#delete(url, options = {}) ⇒ Object
120 121 122 |
# File 'lib/http_mimic.rb', line 120 def delete(url, = {}) self.class.delete(url, ) end |
#get(url, options = {}) ⇒ Object
104 105 106 |
# File 'lib/http_mimic.rb', line 104 def get(url, = {}) self.class.get(url, ) end |
#head(url, options = {}) ⇒ Object
124 125 126 |
# File 'lib/http_mimic.rb', line 124 def head(url, = {}) self.class.head(url, ) end |
#options(url, options = {}) ⇒ Object
128 129 130 |
# File 'lib/http_mimic.rb', line 128 def (url, = {}) self.class.(url, ) end |
#patch(url, options = {}) ⇒ Object
116 117 118 |
# File 'lib/http_mimic.rb', line 116 def patch(url, = {}) self.class.patch(url, ) end |
#post(url, options = {}) ⇒ Object
108 109 110 |
# File 'lib/http_mimic.rb', line 108 def post(url, = {}) self.class.post(url, ) end |
#put(url, options = {}) ⇒ Object
112 113 114 |
# File 'lib/http_mimic.rb', line 112 def put(url, = {}) self.class.put(url, ) end |
#request(method, url, options = {}) ⇒ Object
132 133 134 |
# File 'lib/http_mimic.rb', line 132 def request(method, url, = {}) self.class.request(method, url, ) end |