Module: Todoist::Resource::ClassMethods

Included in:
Filter, Item, Label, Note, Project, Todoist::Reminder, User
Defined in:
lib/todoist/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/todoist/resource.rb', line 5

def attributes
  @attributes
end

#read_only_attributesObject (readonly)

Returns the value of attribute read_only_attributes.



5
6
7
# File 'lib/todoist/resource.rb', line 5

def read_only_attributes
  @read_only_attributes
end

Instance Method Details

#define_attributes(attributes) ⇒ Object



7
8
9
# File 'lib/todoist/resource.rb', line 7

def define_attributes(attributes)
  attr_accessor(*@attributes = attributes)
end

#define_read_only_attributes(attributes) ⇒ Object



11
12
13
# File 'lib/todoist/resource.rb', line 11

def define_read_only_attributes(attributes)
  @read_only_attributes = attributes
end