Class: Butterfly::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/butterfly/client.rb

Class Method Summary collapse

Class Method Details

.delete_from(host, port, uri, data = {}) ⇒ Object



17
18
# File 'lib/butterfly/client.rb', line 17

def self.delete_from(host, port, uri, data={})      
end

.get_from(host, port, uri) ⇒ Object



6
7
8
9
# File 'lib/butterfly/client.rb', line 6

def self.get_from(host, port, uri)
  resp, data = Net::HTTP.new(host, port).get(uri)
  data
end

.post_to(host, port, uri, data = {}) ⇒ Object



11
12
# File 'lib/butterfly/client.rb', line 11

def self.post_to(host, port, uri, data={})
end

.put_to(host, port, uri, data = {}) ⇒ Object



14
15
# File 'lib/butterfly/client.rb', line 14

def self.put_to(host, port, uri, data={})
end