Class: HelloSign::Proxy::Settings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Settings

Returns a new instance of Settings.



8
9
10
# File 'lib/hello_sign/proxy/settings.rb', line 8

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/hello_sign/proxy/settings.rb', line 6

def client
  @client
end

Instance Method Details

#showObject



12
13
14
# File 'lib/hello_sign/proxy/settings.rb', line 12

def show
  client.get('/account')
end

#update(params = {}) ⇒ Object



16
17
18
# File 'lib/hello_sign/proxy/settings.rb', line 16

def update(params = {})
  client.post('/account', body: params)
end