Class: Things::Area

Inherits:
Reference::Record show all
Defined in:
lib/things/area.rb

Overview

Things::Todo

Instance Attribute Summary

Attributes inherited from Reference::Base

#reference

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Reference::Record

build, collection, convert, create, #delete, find, find_by_id, find_by_name, identifier, #initialize, #new?, properties, #save

Methods included from Reference::Inheritance

#inheritable_attributes, #inherited

Constructor Details

This class inherits a constructor from Things::Reference::Record

Class Method Details

.allObject



12
13
14
# File 'lib/things/area.rb', line 12

def all
  convert(Things::App.instance.areas.get)
end

Instance Method Details

#todosObject



17
18
19
# File 'lib/things/area.rb', line 17

def todos
  Things::Todo.convert(reference.todos.get)
end