Module: Ark::Connection
- Included in:
- Client
- Defined in:
- lib/ark/connection.rb
Instance Method Summary collapse
- #delete(url, options = {}) ⇒ Object
- #get(url, options = {}) ⇒ Object
- #last_response ⇒ Object
- #post(url, options = {}) ⇒ Object
- #put(url, options = {}) ⇒ Object
- #root ⇒ Object
Instance Method Details
#delete(url, options = {}) ⇒ Object
18 19 20 |
# File 'lib/ark/connection.rb', line 18 def delete(url, = {}) request :delete, url, end |
#get(url, options = {}) ⇒ Object
6 7 8 |
# File 'lib/ark/connection.rb', line 6 def get(url, = {}) request :get, url, end |
#last_response ⇒ Object
26 27 28 |
# File 'lib/ark/connection.rb', line 26 def last_response @last_response if defined? @last_response end |
#post(url, options = {}) ⇒ Object
10 11 12 |
# File 'lib/ark/connection.rb', line 10 def post(url, = {}) request :post, url, end |
#put(url, options = {}) ⇒ Object
14 15 16 |
# File 'lib/ark/connection.rb', line 14 def put(url, = {}) request :put, url, end |
#root ⇒ Object
22 23 24 |
# File 'lib/ark/connection.rb', line 22 def root "http://#{@ip}:#{@port}/" end |