Class: HelloSign::Proxy::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Account

Returns a new instance of Account.



8
9
10
# File 'lib/hello_sign/proxy/account.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/account.rb', line 6

def client
  @client
end

Instance Method Details

#create(params = {}) ⇒ Object



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

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

#settingsObject



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

def settings
  HelloSign::Proxy::Settings.new(client)
end