Sha256: f5029c30544fd529dce4170a38d3904adbb0831c928ea2c0641b116a6c394c23

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 Bytes

Contents

module Things
  # Things::Todo
  class Area < Reference::Record
    
    properties :name
    # identifier is required for creation
    identifier :area
    # collection is used for findings
    collection :areas
   
    class << self
      def all
        convert(Things::App.instance.areas.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/area.rb
things-client-0.2.3 lib/things/area.rb
things-client-0.2.2 lib/things/area.rb
things-client-0.2.1 lib/things/area.rb