Class: Typhoeus::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/typhoeus/service.rb

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ Service

Returns a new instance of Service.



3
4
5
6
# File 'lib/typhoeus/service.rb', line 3

def initialize(host, port)
  @host = host
  @port = port
end

Instance Method Details

#delete(resource, params) ⇒ Object



17
18
# File 'lib/typhoeus/service.rb', line 17

def delete(resource, params)
end

#get(resource, params) ⇒ Object



8
9
# File 'lib/typhoeus/service.rb', line 8

def get(resource, params)
end

#post(resource, params) ⇒ Object



14
15
# File 'lib/typhoeus/service.rb', line 14

def post(resource, params)
end

#put(resource, params) ⇒ Object



11
12
# File 'lib/typhoeus/service.rb', line 11

def put(resource, params)
end