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.



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

def client
  @client
end

#loop_view_idObject

Returns the value of attribute loop_view_id.



17
18
19
# File 'lib/dotloop/models/document.rb', line 17

def loop_view_id
  @loop_view_id
end

#profile_idObject

Returns the value of attribute profile_id.



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

def profile_id
  @profile_id
end

Instance Method Details

#activitiesObject



19
20
21
# File 'lib/dotloop/models/document.rb', line 19

def activities
  client.DocumentActivity.all(profile_id: profile_id, document_id: document_id)
end

#getObject



23
24
25
26
27
28
29
30
# File 'lib/dotloop/models/document.rb', line 23

def get
  client.Document.get(
    profile_id: profile_id,
    loop_view_id: loop_view_id,
    document_id: document_id,
    document_name: document_name
  )
end