Class: HelloSign::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/hello_sign/connection.rb

Constant Summary collapse

API_ENDPOINT =
'https://api.hellosign.com'.freeze
API_VERSION =
'3'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&auth_configuration) ⇒ Connection

Returns a new instance of Connection.



13
14
15
# File 'lib/hello_sign/connection.rb', line 13

def initialize(&auth_configuration)
  @auth_configuration = auth_configuration
end

Instance Attribute Details

#auth_configurationObject (readonly)

Returns the value of attribute auth_configuration.



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

def auth_configuration
  @auth_configuration
end

Instance Method Details

#get(path, options = {}) ⇒ Object



17
18
19
# File 'lib/hello_sign/connection.rb', line 17

def get(path, options = {})
  request(:get, path, options)
end

#post(path, options = {}) ⇒ Object



21
22
23
# File 'lib/hello_sign/connection.rb', line 21

def post(path, options = {})
  request(:post, path, options)
end