Class: Dotloop::Models::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/dotloop/models/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/models/document.rb', line 12

def client
  @client
end

#folder_idObject

Returns the value of attribute folder_id.



15
16
17
# File 'lib/dotloop/models/document.rb', line 15

def folder_id
  @folder_id
end

#loop_idObject

Returns the value of attribute loop_id.



14
15
16
# File 'lib/dotloop/models/document.rb', line 14

def loop_id
  @loop_id
end

#profile_idObject

Returns the value of attribute profile_id.



13
14
15
# File 'lib/dotloop/models/document.rb', line 13

def profile_id
  @profile_id
end

Instance Method Details

#downloadObject



17
18
19
20
21
22
23
24
# File 'lib/dotloop/models/document.rb', line 17

def download
  client.Document.get(
    profile_id: profile_id,
    loop_id: loop_id,
    folder_id: folder_id,
    document_id: id
  )
end