Module: HelloSign

Extended by:
Forwardable
Defined in:
lib/hello_sign.rb,
lib/hello_sign/file.rb,
lib/hello_sign/error.rb,
lib/hello_sign/proxy.rb,
lib/hello_sign/client.rb,
lib/hello_sign/version.rb,
lib/hello_sign/response.rb,
lib/hello_sign/connection.rb,
lib/hello_sign/proxy/team.rb,
lib/hello_sign/proxy/object.rb,
lib/hello_sign/proxy/account.rb,
lib/hello_sign/proxy/settings.rb,
lib/hello_sign/file/mime_types.rb,
lib/hello_sign/proxy/reusable_form.rb,
lib/hello_sign/middleware/parse_json.rb,
lib/hello_sign/proxy/unclaimed_draft.rb,
lib/hello_sign/middleware/raise_error.rb,
lib/hello_sign/proxy/signature_request.rb,
lib/hello_sign/parameters/unclaimed_draft.rb,
lib/hello_sign/parameters/signature_request.rb,
lib/hello_sign/parameters/reusable_form_signature_request.rb

Defined Under Namespace

Modules: Middleware, Parameters, Proxy Classes: Client, Connection, Error, File, Response

Constant Summary collapse

VERSION =
'1.4.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idObject

Returns the value of attribute client_id.



11
12
13
# File 'lib/hello_sign.rb', line 11

def client_id
  @client_id
end

.email_addressObject

Returns the value of attribute email_address.



11
12
13
# File 'lib/hello_sign.rb', line 11

def email_address
  @email_address
end

.passwordObject

Returns the value of attribute password.



11
12
13
# File 'lib/hello_sign.rb', line 11

def password
  @password
end

Class Method Details

.clientObject



21
22
23
24
25
26
27
# File 'lib/hello_sign.rb', line 21

def client
  unless credentials_match?
    @client = HelloSign::Client.new(email_address, password, client_id)
  end

  @client
end

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

Yields:

  • (_self)

Yield Parameters:

  • _self (HelloSign)

    the object that the method was called on



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

def configure
  yield self
end