Class: Signatory::Document

Inherits:
API::Base
  • Object
show all
Defined in:
lib/signatory/document.rb

Instance Method Summary collapse

Methods inherited from API::Base

all, connection, escape_url_attrs, formatted_collection_name, formatted_name, #has_many, #id, instantiate_collection, #instantiate_record, #persisted?, #to_xml

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/signatory/document.rb', line 10

def expired?
  Date.parse(expires_on) < Date.today
end

#extend_expirationObject



6
7
8
# File 'lib/signatory/document.rb', line 6

def extend_expiration
  connection.post("#{self.class.site}documents/#{id}/extend_expiration")
end