Class: Dotloop::Models::Tasklist

Inherits:
Object
  • Object
show all
Defined in:
lib/dotloop/models/tasklist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



12
13
14
# File 'lib/dotloop/models/tasklist.rb', line 12

def client
  @client
end

#loop_idObject

Returns the value of attribute loop_id.



11
12
13
# File 'lib/dotloop/models/tasklist.rb', line 11

def loop_id
  @loop_id
end

#profile_idObject

Returns the value of attribute profile_id.



10
11
12
# File 'lib/dotloop/models/tasklist.rb', line 10

def profile_id
  @profile_id
end

Instance Method Details

#getObject



22
23
24
25
26
27
28
# File 'lib/dotloop/models/tasklist.rb', line 22

def get
  client.Tasklist.get(
    profile_id: profile_id,
    loop_id: loop_id,
    task_list_id: id
  )
end

#tasksObject



14
15
16
17
18
19
20
# File 'lib/dotloop/models/tasklist.rb', line 14

def tasks
  client.Task.all(
    profile_id: profile_id,
    loop_id: loop_id,
    task_list_id: id
  )
end