Class: HelloSign::Resource::Template

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

Overview

Contains information about the templates you and your team have created Take a look at our Template 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 = 'template') ⇒ HelloSign::Resource:Team

create a new Template from a hash. If a key is defined then template data will be the value of hash, otherwise the hash itself

Parameters:

  • hash (Hash)

    template’s data

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

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



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

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

Dynamic Method Handling

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