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
20 21 22 |
# File 'lib/selligent/connection.rb', line 20 def delete(url, = {}, &block) connection.delete url, , &block end |
#get(url, options = {}, &block) ⇒ Object
8 9 10 |
# File 'lib/selligent/connection.rb', line 8 def get(url, = {}, &block) connection.get url, , &block end |
#post(url, options = {}, &block) ⇒ Object
12 13 14 |
# File 'lib/selligent/connection.rb', line 12 def post(url, = {}, &block) connection.post url, , &block end |
#put(url, options = {}, &block) ⇒ Object
16 17 18 |
# File 'lib/selligent/connection.rb', line 16 def put(url, = {}, &block) connection.put url, , &block end |