Class: DotloopApi::Models::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/dotloop_api/models/profile.rb,
lib/dotloop_api/models/profile/loop.rb,
lib/dotloop_api/models/profile/loop/detail.rb,
lib/dotloop_api/models/profile/loop/folder.rb,
lib/dotloop_api/models/profile/loop/activity.rb,
lib/dotloop_api/models/profile/loop/tasklist.rb,
lib/dotloop_api/models/profile/loop_template.rb,
lib/dotloop_api/models/profile/loop/tasklist/task.rb,
lib/dotloop_api/models/profile/loop/folder/document.rb

Defined Under Namespace

Classes: Loop, LoopTemplate

Constant Summary collapse

PROFILE_TYPES =
%w[ASSOCIATION COMPANY INDIVIDUAL NATIONAL_PARTNER OFFICE TEAM].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



42
43
44
# File 'lib/dotloop_api/models/profile.rb', line 42

def client
  @client
end

Instance Method Details

#loop(id) ⇒ Object



48
49
50
# File 'lib/dotloop_api/models/profile.rb', line 48

def loop(id)
  loop_endpoint.find(id: id)
end

#loop_templatesObject



52
53
54
# File 'lib/dotloop_api/models/profile.rb', line 52

def loop_templates
  DotloopApi::EndPoints::LoopTemplate.new(client: client, profile_id: id).all
end

#loops(options = {}) ⇒ Object



44
45
46
# File 'lib/dotloop_api/models/profile.rb', line 44

def loops(options = {})
  loop_endpoint.all(options)
end