Class: Geekbot::Client

Inherits:
Object
  • Object
show all
Includes:
ApiMethods, Connection
Defined in:
lib/geekbot/client.rb

Instance Method Summary collapse

Methods included from Connection

#connection

Methods included from ApiMethods

#create_standup, #destroy_standup, #index_reports, #index_standups, #index_teams, #replace_standup, #show_standup, #update_standup

Constructor Details

#initialize(access_token: nil) ⇒ Client

Returns a new instance of Client.



12
13
14
# File 'lib/geekbot/client.rb', line 12

def initialize(access_token: nil)
  @access_token = access_token
end

Instance Method Details

#delete(path, params = nil, headers = nil) ⇒ Object



32
33
34
# File 'lib/geekbot/client.rb', line 32

def delete(path, params = nil, headers = nil)
  request(:delete, path, params, headers)
end

#get(path, params = nil, headers = nil) ⇒ Object



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

def get(path, params = nil, headers = nil)
  request(:get, path, params, headers)
end

#patch(path, params = nil, headers = nil) ⇒ Object



28
29
30
# File 'lib/geekbot/client.rb', line 28

def patch(path, params = nil, headers = nil)
  request(:patch, path, params, headers)
end

#post(path, params = nil, headers = nil) ⇒ Object



20
21
22
# File 'lib/geekbot/client.rb', line 20

def post(path, params = nil, headers = nil)
  request(:post, path, params, headers)
end

#put(path, params = nil, headers = nil) ⇒ Object



24
25
26
# File 'lib/geekbot/client.rb', line 24

def put(path, params = nil, headers = nil)
  request(:put, path, params, headers)
end