Class: Geekbot::Client
Instance Method Summary
collapse
-
#delete(path, params = nil, headers = nil) ⇒ Object
-
#get(path, params = nil, headers = nil) ⇒ Object
-
#initialize(access_token: nil) ⇒ Client
constructor
A new instance of Client.
-
#patch(path, params = nil, headers = nil) ⇒ Object
-
#post(path, params = nil, headers = nil) ⇒ Object
-
#put(path, params = nil, headers = nil) ⇒ Object
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, = nil)
request(:delete, path, params, )
end
|
#get(path, params = nil, headers = nil) ⇒ Object
16
17
18
|
# File 'lib/geekbot/client.rb', line 16
def get(path, params = nil, = nil)
request(:get, path, params, )
end
|
#patch(path, params = nil, headers = nil) ⇒ Object
28
29
30
|
# File 'lib/geekbot/client.rb', line 28
def patch(path, params = nil, = nil)
request(:patch, path, params, )
end
|
#post(path, params = nil, headers = nil) ⇒ Object
20
21
22
|
# File 'lib/geekbot/client.rb', line 20
def post(path, params = nil, = nil)
request(:post, path, params, )
end
|
#put(path, params = nil, headers = nil) ⇒ Object
24
25
26
|
# File 'lib/geekbot/client.rb', line 24
def put(path, params = nil, = nil)
request(:put, path, params, )
end
|