Class: Echosign::Fileinfo

Inherits:
Hash
  • Object
show all
Includes:
Validatable
Defined in:
lib/echosign/agreement/fileinfo.rb

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(params) ⇒ Echosign::Fileinfo

Validates Fileinfo params

Options Hash (params):

  • :transientDocumentId (String)

    A transient document ID available to the sender

  • :libraryDocumentId (String)

    A library document ID available to the sender

  • :libraryDocumentName (String)

    A library document name available to the sender

  • :documentURL (Echosign::UrlFileInfo)

    A description of the URL where the document can be found


14
15
16
17
# File 'lib/echosign/agreement/fileinfo.rb', line 14

def initialize(params)
  require_exactly_one([:transientDocumentId, :libraryDocumentId, :libraryDocumentName, :documentURL], params)
  merge!(params)
end