Class: DotloopApi::EndPoints::Loop

Inherits:
Batch
  • Object
show all
Defined in:
lib/dotloop_api/end_points/loop.rb

Constant Summary

Constants inherited from Batch

Batch::MAX_LOOPS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Batch

#all, #batch

Methods inherited from Base

#all, #create, #delete, #find, #save, #single_path

Methods included from ModelBuilder

#build_details, #build_documents, #build_model

Constructor Details

#initialize(client:, profile_id: nil) ⇒ Loop

Returns a new instance of Loop.



8
9
10
11
# File 'lib/dotloop_api/end_points/loop.rb', line 8

def initialize(client:, profile_id: nil)
  @profile_id = profile_id
  super(client:, path:, type: DotloopApi::Models::Profile::Loop)
end

Instance Attribute Details

#profile_idObject

Returns the value of attribute profile_id.



4
5
6
# File 'lib/dotloop_api/end_points/loop.rb', line 4

def profile_id
  @profile_id
end

Instance Method Details

#pathObject



13
14
15
# File 'lib/dotloop_api/end_points/loop.rb', line 13

def path
  "/profile/#{@profile_id}/loop"
end