Module: Todoist::Resource::ClassMethods
- Defined in:
- lib/todoist/resource.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#read_only_attributes ⇒ Object
readonly
Returns the value of attribute read_only_attributes.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/todoist/resource.rb', line 5 def attributes @attributes end |
#read_only_attributes ⇒ Object (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 |