Sha256: bdabde8cc80ba2f805491500133c29074128dec1c10d894f5c7c505375f7e08f
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
class Todoly class Filter def self.list(rest_if) rest_if.filters.map do |f| self.new(rest_if, f) end end def initialize(rest_if, obj) @rest_if = rest_if @raw = obj @id = obj["Id"] @name = obj["Content"] end attr_reader :raw, :id, :name def [](key) @raw[key] end def tasks @rest_if.items_of_filter(@id).map do |item| Task.new(@rest_if, item) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
todoly-0.0.4 | lib/todoly/filter.rb |
todoly-0.0.3 | lib/todoly/filter.rb |
todoly-0.0.2 | lib/todoly/filter.rb |