Module: Selligent::Connection
- Included in:
- Client
- Defined in:
- lib/selligent/connection.rb
Overview
Network layer
Instance Method Summary collapse
- #delete(url, options = {}, &block) ⇒ Object
- #get(url, options = {}, &block) ⇒ Object
- #post(url, options = {}, &block) ⇒ Object
- #put(url, options = {}, &block) ⇒ Object
Instance Method Details
#delete(url, options = {}, &block) ⇒ Object
21 22 23 |
# File 'lib/selligent/connection.rb', line 21 def delete(url, = {}, &block) connection.delete url, , &block end |
#get(url, options = {}, &block) ⇒ Object
9 10 11 |
# File 'lib/selligent/connection.rb', line 9 def get(url, = {}, &block) connection.get url, , &block end |
#post(url, options = {}, &block) ⇒ Object
13 14 15 |
# File 'lib/selligent/connection.rb', line 13 def post(url, = {}, &block) connection.post url, , &block end |
#put(url, options = {}, &block) ⇒ Object
17 18 19 |
# File 'lib/selligent/connection.rb', line 17 def put(url, = {}, &block) connection.put url, , &block end |