Class: DotloopApi::EndPoints::LoopTemplate
- Defined in:
- lib/dotloop_api/end_points/loop_template.rb
Instance Attribute Summary collapse
-
#profile_id ⇒ Object
Returns the value of attribute profile_id.
Instance Method Summary collapse
-
#initialize(client:, profile_id: nil) ⇒ LoopTemplate
constructor
A new instance of LoopTemplate.
- #path ⇒ Object
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.
9 10 11 12 |
# File 'lib/dotloop_api/end_points/loop_template.rb', line 9 def initialize(client:, profile_id: nil) @profile_id = profile_id super(client: client, path: path, type: DotloopApi::Models::Profile::LoopTemplate) end |
Instance Attribute Details
#profile_id ⇒ Object
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
#path ⇒ Object
14 15 16 |
# File 'lib/dotloop_api/end_points/loop_template.rb', line 14 def path "/profile/#{@profile_id}/loop-template" end |