Class: Todoist::Item
- Inherits:
-
Object
- Object
- Todoist::Item
- Extended by:
- Resource::ClassMethods
- Includes:
- Resource
- Defined in:
- lib/todoist/item.rb
Instance Attribute Summary
Attributes included from Resource::ClassMethods
#attributes, #read_only_attributes
Attributes included from Resource
Instance Method Summary collapse
Methods included from Resource::ClassMethods
define_attributes, define_read_only_attributes
Methods included from Resource
#attributes, #attributes=, #command_class, #create_command, #initialize, #logger, #persisted?, #resource_type, #to_hash, #to_submittable_hash
Instance Method Details
#project=(project) ⇒ Object
45 46 47 |
# File 'lib/todoist/item.rb', line 45 def project=(project) self.project_id = project.to_hash['id'] end |
#user=(user) ⇒ Object
49 50 51 |
# File 'lib/todoist/item.rb', line 49 def user=(user) self.user_id = user.to_hash['id'] end |