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.



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

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (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

#showObject



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