Class: Producteev::Labels
- Inherits:
-
Object
- Object
- Producteev::Labels
- Defined in:
- lib/producteev/labels.rb
Instance Method Summary collapse
- #create(options = {}) ⇒ Object
- #delete(options = {}) ⇒ Object
-
#initialize(token) ⇒ Labels
constructor
A new instance of Labels.
- #set_title(options = {}) ⇒ Object
- #show_list(options = {}) ⇒ Object
- #tasks(options = {}) ⇒ Object
- #view(options = {}) ⇒ Object
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( = {}) return Producteev::Api.instance.send_request("/labels/create.json",,@token) end |
#delete(options = {}) ⇒ Object
11 12 13 |
# File 'lib/producteev/labels.rb', line 11 def delete( = {}) return Producteev::Api.instance.send_request("/labels/delete.json",,@token) end |
#set_title(options = {}) ⇒ Object
27 28 29 |
# File 'lib/producteev/labels.rb', line 27 def set_title( = {}) return Producteev::Api.instance.send_request("/labels/set_title.json",,@token) end |
#show_list(options = {}) ⇒ Object
19 20 21 |
# File 'lib/producteev/labels.rb', line 19 def show_list( = {}) return Producteev::Api.instance.send_request("/labels/show_list.json",,@token) end |
#tasks(options = {}) ⇒ Object
23 24 25 |
# File 'lib/producteev/labels.rb', line 23 def tasks( = {}) return Producteev::Api.instance.send_request("/labels/tasks.json",,@token) end |
#view(options = {}) ⇒ Object
15 16 17 |
# File 'lib/producteev/labels.rb', line 15 def view( = {}) return Producteev::Api.instance.send_request("/labels/view.json",,@token) end |