Class: HelloSign::Resource::Account

Inherits:
BaseResource show all
Defined in:
lib/hello_sign/resource/account.rb

Overview

Contains information about an account and its settings. Take a look at our account resource document for more information about this.

Author:

  • hellosign

Instance Method Summary collapse

Methods inherited from BaseResource

#data, #method_missing, #warnings

Constructor Details

#initialize(hash, key = 'account') ⇒ HelloSign::Resource:Account

Create a new Account from a hash. If key defined then account data with be the value of hash, otherwise the hash itself

Parameters:

  • hash (Hash)

    account’s data

  • key (String) (defaults to: 'account')

    (account) key of the hash, point to where account data is. If nil then the hash itself



43
44
45
# File 'lib/hello_sign/resource/account.rb', line 43

def initialize(hash, key='account')
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HelloSign::Resource::BaseResource