Module: Clicksign

Defined in:
lib/clicksign.rb,
lib/clicksign/base.rb,
lib/clicksign/hook.rb,
lib/clicksign/batch.rb,
lib/clicksign/version.rb,
lib/clicksign/document.rb

Defined Under Namespace

Classes: Base, Batch, Document, Hook

Constant Summary collapse

VERSION =
'0.2.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_versionObject

Returns the value of attribute api_version.



12
13
14
# File 'lib/clicksign.rb', line 12

def api_version
  @api_version
end

.endpointObject

Returns the value of attribute endpoint.



12
13
14
# File 'lib/clicksign.rb', line 12

def endpoint
  @endpoint
end

.tokenObject

Returns the value of attribute token.



12
13
14
# File 'lib/clicksign.rb', line 12

def token
  @token
end

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Clicksign)

    the object that the method was called on



15
16
17
18
19
20
# File 'lib/clicksign.rb', line 15

def self.configure(&block)
  self.endpoint    = 'https://api.clicksign.com'
  self.api_version = 'v1'

  yield self
end