Module: Clicksign::API

Defined in:
lib/clicksign/api.rb,
lib/clicksign/api/batch.rb,
lib/clicksign/api/signer.rb,
lib/clicksign/api/version.rb,
lib/clicksign/api/document.rb,
lib/clicksign/api/notifier.rb,
lib/clicksign/api/requests.rb,
lib/clicksign/api/documents_signers.rb,
lib/clicksign/api/whatsapp_notifier.rb

Defined Under Namespace

Modules: Requests Classes: Batch, Document, DocumentsSigners, Notifier, Signer, WhatsappNotifier

Constant Summary collapse

VERSION =
"1.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.credentialsObject

Returns the value of attribute credentials.



27
28
29
# File 'lib/clicksign/api.rb', line 27

def credentials
  @credentials
end

.productionObject

Returns the value of attribute production.



27
28
29
# File 'lib/clicksign/api.rb', line 27

def production
  @production
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



29
30
31
# File 'lib/clicksign/api.rb', line 29

def configure
  yield(self)
end

.production?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/clicksign/api.rb', line 33

def production?
  production || false
end

.urlObject



37
38
39
40
41
42
43
# File 'lib/clicksign/api.rb', line 37

def url
  if production?
    'https://app.clicksign.com'
  else
    'https://sandbox.clicksign.com'
  end
end