Class: HelloSign::Connection
- Inherits:
-
Object
- Object
- HelloSign::Connection
- 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
-
#auth_configuration ⇒ Object
readonly
Returns the value of attribute auth_configuration.
Instance Method Summary collapse
- #get(path, options = {}) ⇒ Object
-
#initialize(&auth_configuration) ⇒ Connection
constructor
A new instance of Connection.
- #post(path, options = {}) ⇒ Object
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_configuration ⇒ Object (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, = {}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
21 22 23 |
# File 'lib/hello_sign/connection.rb', line 21 def post(path, = {}) request(:post, path, ) end |