Sha256: 7602dd1f749baef567f318c5b5340e992ace0a6cf8ae49d7131ce983a7afdf4e

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

require 'fog/core/collection'
require 'fog/wunderlist/models/tasks/task'

module Fog
  module Tasks 
    class Wunderlist

      class Tasks < Fog::Collection
        model Fog::Tasks::Wunderlist::Task

        def all
          load service.list_tasks.body
        end

        def get(id)
          all.find { |t| t.id == id }
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-wunderlist-0.1 lib/fog/wunderlist/models/tasks/tasks.rb