Class: Lolp::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/lolp/connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Connection

Returns a new instance of Connection.



6
7
8
9
10
# File 'lib/lolp/connection.rb', line 6

def initialize(config)
  @config = config
  authenticate
  @connection = connection
end

Instance Method Details

#delete(path, params = {}) ⇒ Object



20
21
22
# File 'lib/lolp/connection.rb', line 20

def delete(path, params = {})
  @connection.delete(path, params)
end

#get(path) ⇒ Object



12
13
14
# File 'lib/lolp/connection.rb', line 12

def get(path)
  @connection.get(path)
end

#post(path, params = {}) ⇒ Object



16
17
18
# File 'lib/lolp/connection.rb', line 16

def post(path, params = {})
  @connection.post(path, params)
end