Class: Height::Model::User

Inherits:
Base
  • Object
show all
Defined in:
lib/height/model/user.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/user.rb', line 3

def attributes
  [:id, :state, :email, :username, :firstname, :lastname, :access, :created_at, :picture_url]
end

#tasksObject



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

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

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