Class: Height::Model::List

Inherits:
Base
  • Object
show all
Defined in:
lib/height/model/list.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #related_models

Constructor Details

This class inherits a constructor from Height::Model::Base

Instance Method Details

#attributesObject



3
4
5
# File 'lib/height/model/list.rb', line 3

def attributes
  [:id, :type, :key, :description, :url, :appearance]
end

#tasksObject



7
8
9
10
11
12
13
14
15
# File 'lib/height/model/list.rb', line 7

def tasks
  filters = {
    "listIds" => {
      "values" => [id]
    }
  }

  Height::API::Tasks.search(filters)
end