Class: DotloopApi::EndPoints::Loop
- Defined in:
- lib/dotloop_api/end_points/loop.rb
Constant Summary
Constants inherited from Batch
Instance Attribute Summary collapse
-
#profile_id ⇒ Object
Returns the value of attribute profile_id.
Instance Method Summary collapse
-
#initialize(client:, profile_id: nil) ⇒ Loop
constructor
A new instance of Loop.
- #path ⇒ Object
Methods inherited from 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: client, path: path, type: DotloopApi::Models::Profile::Loop) end |
Instance Attribute Details
#profile_id ⇒ Object
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
#path ⇒ Object
13 14 15 |
# File 'lib/dotloop_api/end_points/loop.rb', line 13 def path "/profile/#{@profile_id}/loop" end |