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.



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

def client
  @client
end

Instance Method Details

#loop(id) ⇒ Object



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

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

#loop_templatesObject



57
58
59
# File 'lib/dotloop_api/models/profile.rb', line 57

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

#loops(options = {}) ⇒ Object



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

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