Class: Signnow::Document
- Includes:
- Operations::All, Operations::DownloadLink, Operations::Show
- Defined in:
- lib/signnow/document.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#document_name ⇒ Object
Returns the value of attribute document_name.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inserts ⇒ Object
Returns the value of attribute inserts.
-
#notary_invites ⇒ Object
Returns the value of attribute notary_invites.
-
#original_filename ⇒ Object
Returns the value of attribute original_filename.
-
#page_count ⇒ Object
Returns the value of attribute page_count.
-
#pages ⇒ Object
Returns the value of attribute pages.
-
#requests ⇒ Object
Returns the value of attribute requests.
-
#seals ⇒ Object
Returns the value of attribute seals.
-
#signatures ⇒ Object
Returns the value of attribute signatures.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#texts ⇒ Object
Returns the value of attribute texts.
-
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#version_time ⇒ Object
Returns the value of attribute version_time.
Class Method Summary collapse
-
.api_all_url ⇒ Object
Redefining the documents api endpoint.
Instance Method Summary collapse
-
#parse_timestamps ⇒ Object
Parses UNIX timestamps and creates Time objects.
Methods included from Operations::DownloadLink
Methods included from Operations::All
Methods included from Operations::Show
Methods inherited from Base
#errors, #initialize, #set_attributes, #valid?
Methods included from Operations::Find
Methods included from Operations::Create
Constructor Details
This class inherits a constructor from Signnow::Base
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def created @created end |
#document_name ⇒ Object
Returns the value of attribute document_name.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def document_name @document_name end |
#fields ⇒ Object
Returns the value of attribute fields.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def fields @fields end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def id @id end |
#inserts ⇒ Object
Returns the value of attribute inserts.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def inserts @inserts end |
#notary_invites ⇒ Object
Returns the value of attribute notary_invites.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def notary_invites @notary_invites end |
#original_filename ⇒ Object
Returns the value of attribute original_filename.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def original_filename @original_filename end |
#page_count ⇒ Object
Returns the value of attribute page_count.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def page_count @page_count end |
#pages ⇒ Object
Returns the value of attribute pages.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def pages @pages end |
#requests ⇒ Object
Returns the value of attribute requests.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def requests @requests end |
#seals ⇒ Object
Returns the value of attribute seals.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def seals @seals end |
#signatures ⇒ Object
Returns the value of attribute signatures.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def signatures @signatures end |
#tags ⇒ Object
Returns the value of attribute tags.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def end |
#texts ⇒ Object
Returns the value of attribute texts.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def texts @texts end |
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def thumbnail @thumbnail end |
#updated ⇒ Object
Returns the value of attribute updated.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def updated @updated end |
#user_id ⇒ Object
Returns the value of attribute user_id.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def user_id @user_id end |
#version_time ⇒ Object
Returns the value of attribute version_time.
7 8 9 |
# File 'lib/signnow/document.rb', line 7 def version_time @version_time end |
Class Method Details
.api_all_url ⇒ Object
Redefining the documents api endpoint
21 22 23 |
# File 'lib/signnow/document.rb', line 21 def api_all_url "user/documentsv2" end |
Instance Method Details
#parse_timestamps ⇒ Object
Parses UNIX timestamps and creates Time objects.
12 13 14 15 16 |
# File 'lib/signnow/document.rb', line 12 def super @updated = updated.to_i if updated.is_a? String @updated = Time.at(updated) if updated end |