Class: Dotloop::Models::Loop

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#client ⇒ Object

Returns the value of attribute client.



17
18
19
# File 'lib/dotloop/models/loop.rb', line 17

def client
  @client
end

#profile_id ⇒ Object

Returns the value of attribute profile_id.



18
19
20
# File 'lib/dotloop/models/loop.rb', line 18

def profile_id
  @profile_id
end

Instance Method Details

#detail ⇒ Object



20
21
22
# File 'lib/dotloop/models/loop.rb', line 20

def detail
  client.Loop.detail(profile_id: profile_id, loop_id: id)
end

#folders ⇒ Object



24
25
26
# File 'lib/dotloop/models/loop.rb', line 24

def folders
  client.Folder.all(profile_id: profile_id, loop_id: id)
end

#participants ⇒ Object



28
29
30
# File 'lib/dotloop/models/loop.rb', line 28

def participants
  client.Participant.all(profile_id: profile_id, loop_id: id)
end

#tasklists ⇒ Object



32
33
34
# File 'lib/dotloop/models/loop.rb', line 32

def tasklists
  client.Tasklist.all(profile_id: profile_id, loop_id: id)
end

#update(data) ⇒ Object



36
37
38
# File 'lib/dotloop/models/loop.rb', line 36

def update(data)
  client.Loop.update(profile_id: profile_id, loop_id: id, params: data)
end

#update_details(data) ⇒ Object



40
41
42
# File 'lib/dotloop/models/loop.rb', line 40

def update_details(data)
  client.Loop.update_details(profile_id: profile_id, loop_id: id, params: data)
end