Class: DotloopApi::Models::Profile::Loop
  
  
  
  
  
    - Inherits:
- 
      Object
      
        
          - Object
- DotloopApi::Models::Profile::Loop
 show all
    - Defined in:
- lib/dotloop_api/models/profile.rb,
 lib/dotloop_api/models/profile/loop.rb,
 lib/dotloop_api/models/profile/loop/detail.rb,
 lib/dotloop_api/models/profile/loop/folder.rb,
 lib/dotloop_api/models/profile/loop/activity.rb,
 lib/dotloop_api/models/profile/loop/tasklist.rb,
 lib/dotloop_api/models/profile/loop/tasklist/task.rb,
 lib/dotloop_api/models/profile/loop/folder/document.rb
 
Overview
  
    
define nested classes first for dependency resolution
   
 
  
Defined Under Namespace
  
    
  
    
      Classes: Activity, Detail, Folder, Participant, TaskList
    
  
  
    
      Constant Summary
      collapse
    
    
      
        - STATUS_TYPES =
          
        
- {
  PURCHASE_OFFER: %w[ARCHIVED PRE_OFFER SOLD UNDER_CONTRACT],
  LISTING_FOR_SALE: %w[ACTIVE_LISTING ARCHIVED PRE_LISTING PRIVATE_LISTING SOLD UNDER_CONTRACT],
  LISTING_FOR_LEASE: %w[ACTIVE_LISTING ARCHIVED LEASED PRE_LISTING PRIVATE_LISTING UNDER_CONTRACT],
  LEASE_OFFER: %w[ARCHIVED LEASED PRE_OFFER UNDER_CONTRACT],
  REAL_ESTATE_OTHER: %w[ARCHIVED DONE IN_PROGRESS NEW],
  OTHER: %w[ARCHIVED DONE IN_PROGRESS NEW]
}.freeze
- TRANSACTION_TYPES =
          
        
- STATUS_TYPES.keys 
Instance Attribute Summary collapse
  
  
    
      Instance Method Summary
      collapse
    
    
  
  
    Instance Attribute Details
    
      
      
      
  
  
    #client  ⇒ Object 
  
  
  
  
    
Returns the value of attribute client.
   
 
  
  
    | 
28
29
30 | # File 'lib/dotloop_api/models/profile/loop.rb', line 28
def client
  @client
end | 
 
    
   
  
    Instance Method Details
    
      
  
  
    #activities  ⇒ Object 
  
  
  
  
    | 
30
31
32 | # File 'lib/dotloop_api/models/profile/loop.rb', line 30
def activities
  DotloopApi::EndPoints::Activity.new(client: client, profile_id: profile_id, loop_id: id).all
end | 
 
    
      
  
  
    #detail  ⇒ Object 
  
  
  
  
    | 
34
35
36
37
38 | # File 'lib/dotloop_api/models/profile/loop.rb', line 34
def detail
  @details = DotloopApi::EndPoints::Detail.new(
    client: client, profile_id: profile_id, loop_id: id
  ).find
end | 
 
    
      
  
  
    #folders(options = {})  ⇒ Object 
  
  
  
  
    | 
40
41
42
43
44 | # File 'lib/dotloop_api/models/profile/loop.rb', line 40
def folders(options = {})
  DotloopApi::EndPoints::Folder.new(
    client: client, profile_id: profile_id, loop_id: id
  ).all(options)
end | 
 
    
      
  
  
    #participants  ⇒ Object 
  
  
  
  
    | 
46
47
48
49
50 | # File 'lib/dotloop_api/models/profile/loop.rb', line 46
def participants
  @all_participants = DotloopApi::EndPoints::Participant.new(
    client: client, profile_id: profile_id, loop_id: id
  ).all
end | 
 
    
      
  
  
    #task_lists  ⇒ Object 
  
  
  
  
    | 
52
53
54 | # File 'lib/dotloop_api/models/profile/loop.rb', line 52
def task_lists
  DotloopApi::EndPoints::TaskList.new(client: client, profile_id: profile_id, loop_id: id).all
end |