Module: Network

Defined in:
lib/network.rb,
lib/network/connection.rb

Defined Under Namespace

Classes: Connection, Error, ResponseError

Class Method Summary collapse

Class Method Details

.get(url, data, options = {}) ⇒ Object



10
11
12
# File 'lib/network.rb', line 10

def self.get(url, data, options = {})
  Connection.new(url, options).get(data)
end

.post(url, data, options = {}) ⇒ Object



6
7
8
# File 'lib/network.rb', line 6

def self.post(url, data, options = {})
  Connection.new(url, options).post(data)
end