Class: Messenger::Client
- Inherits:
-
Object
- Object
- Messenger::Client
- Defined in:
- lib/messenger.rb
Instance Attribute Summary collapse
-
#basecamp ⇒ Object
Returns the value of attribute basecamp.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Client
constructor
A new instance of Client.
- #people ⇒ Object
- #todo(project_id) ⇒ Object
- #todo_list(project_id) ⇒ Object
- #todo_set(project_id) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Client
10 11 12 13 |
# File 'lib/messenger.rb', line 10 def initialize(*args) @args = args @basecamp = Messenger::Basecamp.new(@args) end |
Instance Attribute Details
#basecamp ⇒ Object
Returns the value of attribute basecamp.
8 9 10 |
# File 'lib/messenger.rb', line 8 def basecamp @basecamp end |
Instance Method Details
#people ⇒ Object
27 28 29 |
# File 'lib/messenger.rb', line 27 def people Messenger::People.new Array.new(@args) end |
#todo(project_id) ⇒ Object
15 16 17 |
# File 'lib/messenger.rb', line 15 def todo project_id Messenger::ToDo.new Array.new(@args).push(project_id) end |
#todo_list(project_id) ⇒ Object
19 20 21 |
# File 'lib/messenger.rb', line 19 def todo_list project_id Messenger::ToDoList.new Array.new(@args).push(project_id) end |
#todo_set(project_id) ⇒ Object
23 24 25 |
# File 'lib/messenger.rb', line 23 def todo_set project_id Messenger::ToDoSet.new Array.new(@args).push(project_id) end |