Class: DotloopApi::EndPoints::Folder
- Defined in:
 - lib/dotloop_api/end_points/folder.rb
 
Instance Attribute Summary collapse
- 
  
    
      #loop_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute loop_id.
 - 
  
    
      #profile_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute profile_id.
 
Instance Method Summary collapse
- #all(options = {}) ⇒ Object
 - 
  
    
      #initialize(client:, profile_id: nil, loop_id: nil)  ⇒ Folder 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Folder.
 - #path ⇒ Object
 
Methods inherited from Base
#create, #delete, #find, #save, #single_path
Methods included from ModelBuilder
#build_details, #build_documents, #build_model
Constructor Details
#initialize(client:, profile_id: nil, loop_id: nil) ⇒ Folder
Returns a new instance of Folder.
      8 9 10 11 12  | 
    
      # File 'lib/dotloop_api/end_points/folder.rb', line 8 def initialize(client:, profile_id: nil, loop_id: nil) @profile_id = profile_id @loop_id = loop_id super(client: client, path: path, type: DotloopApi::Models::Profile::Loop::Folder) end  | 
  
Instance Attribute Details
#loop_id ⇒ Object
Returns the value of attribute loop_id.
      5 6 7  | 
    
      # File 'lib/dotloop_api/end_points/folder.rb', line 5 def loop_id @loop_id end  | 
  
#profile_id ⇒ Object
Returns the value of attribute profile_id.
      4 5 6  | 
    
      # File 'lib/dotloop_api/end_points/folder.rb', line 4 def profile_id @profile_id end  | 
  
Instance Method Details
#all(options = {}) ⇒ Object
      14 15 16 17  | 
    
      # File 'lib/dotloop_api/end_points/folder.rb', line 14 def all( = {}) () @client.get(path, @params)[:data].map { |attrs| build_model(attrs) } end  | 
  
#path ⇒ Object
      19 20 21  | 
    
      # File 'lib/dotloop_api/end_points/folder.rb', line 19 def path "/profile/#{@profile_id}/loop/#{@loop_id}/folder" end  |