Class: DotloopApi::Models::Profile::Loop::Folder::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/dotloop_api/models/profile.rb,
lib/dotloop_api/models/profile/loop/folder/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



12
13
14
# File 'lib/dotloop_api/models/profile/loop/folder/document.rb', line 12

def client
  @client
end

#folder_idObject

Returns the value of attribute folder_id.



12
13
14
# File 'lib/dotloop_api/models/profile/loop/folder/document.rb', line 12

def folder_id
  @folder_id
end

#loop_idObject

Returns the value of attribute loop_id.



12
13
14
# File 'lib/dotloop_api/models/profile/loop/folder/document.rb', line 12

def loop_id
  @loop_id
end

#profile_idObject

Returns the value of attribute profile_id.



12
13
14
# File 'lib/dotloop_api/models/profile/loop/folder/document.rb', line 12

def profile_id
  @profile_id
end

Instance Method Details

#downloadObject



14
15
16
17
18
# File 'lib/dotloop_api/models/profile/loop/folder/document.rb', line 14

def download
  DotloopApi::EndPoints::Document.new(
    client: client, profile_id: profile_id, loop_id: loop_id, folder_id: folder_id
  ).download(id: @id)
end