Class: DotloopApi::EndPoints::LoopTemplate

Inherits:
Base
  • Object
show all
Defined in:
lib/dotloop_api/end_points/loop_template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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) ⇒ LoopTemplate

Returns a new instance of LoopTemplate.



10
11
12
13
# File 'lib/dotloop_api/end_points/loop_template.rb', line 10

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

Instance Attribute Details

#profile_idObject

Returns the value of attribute profile_id.



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

def profile_id
  @profile_id
end

Instance Method Details

#pathObject



15
16
17
# File 'lib/dotloop_api/end_points/loop_template.rb', line 15

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