Class: Producteev::Labels

Inherits:
Object
  • Object
show all
Defined in:
lib/producteev/labels.rb

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ Labels

Returns a new instance of Labels.



3
4
5
# File 'lib/producteev/labels.rb', line 3

def initialize(token)
  @token = token
end

Instance Method Details

#create(options = {}) ⇒ Object



7
8
9
# File 'lib/producteev/labels.rb', line 7

def create(options = {})
  return Producteev::Api.instance.send_request("/labels/create.json",options,@token)
end

#delete(options = {}) ⇒ Object



11
12
13
# File 'lib/producteev/labels.rb', line 11

def delete(options = {})
  return Producteev::Api.instance.send_request("/labels/delete.json",options,@token)
end

#set_title(options = {}) ⇒ Object



27
28
29
# File 'lib/producteev/labels.rb', line 27

def set_title(options = {})
  return Producteev::Api.instance.send_request("/labels/set_title.json",options,@token)
end

#show_list(options = {}) ⇒ Object



19
20
21
# File 'lib/producteev/labels.rb', line 19

def show_list(options = {})
  return Producteev::Api.instance.send_request("/labels/show_list.json",options,@token)
end

#tasks(options = {}) ⇒ Object



23
24
25
# File 'lib/producteev/labels.rb', line 23

def tasks(options = {})
  return Producteev::Api.instance.send_request("/labels/tasks.json",options,@token)
end

#view(options = {}) ⇒ Object



15
16
17
# File 'lib/producteev/labels.rb', line 15

def view(options = {})
  return Producteev::Api.instance.send_request("/labels/view.json",options,@token)
end