Class: HelloSign::Proxy::Settings
- Inherits:
-
Object
- Object
- HelloSign::Proxy::Settings
- Defined in:
- lib/hello_sign/proxy/settings.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Settings
constructor
A new instance of Settings.
- #show ⇒ Object
- #update(params = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ Settings
Returns a new instance of Settings.
6 7 8 |
# File 'lib/hello_sign/proxy/settings.rb', line 6 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/hello_sign/proxy/settings.rb', line 4 def client @client end |
Instance Method Details
#show ⇒ Object
10 11 12 |
# File 'lib/hello_sign/proxy/settings.rb', line 10 def show client.get('/account') end |
#update(params = {}) ⇒ Object
14 15 16 |
# File 'lib/hello_sign/proxy/settings.rb', line 14 def update(params = {}) client.post('/account', body: params) end |