Sha256: 462ac4ea91409c6dce8c4eb7ec2cdb3c3371cf292fd6767f1280c13851e2cbf8

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

module Things
  # Things::Todo
  class Project < Reference::Record
    
    properties :name
    # identifier is required for creation
    identifier :project
    # collection is used for findings
    collection :projects
   
    class << self
      def all
        convert(Things::App.instance.projects.get)
      end
    end
    
    def todos
      Things::Todo.convert(reference.todos.get)
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
things-client-0.2.4 lib/things/project.rb
things-client-0.2.3 lib/things/project.rb
things-client-0.2.2 lib/things/project.rb
things-client-0.2.1 lib/things/project.rb