Sha256: 03c860a58496313590c1df821ddc3d5610423cb1e4024358a8584447de5e7e1b

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

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

module Fog
  module Tasks 
    class Wunderlist

      class Lists < Fog::Collection
        model Fog::Tasks::Wunderlist::List

        def all
          load service.list_lists.body
        end

        def get(id)
          all.find{ |l| l.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/lists.rb