Class: HelloSign::Resource::Embedded

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

Overview

An object that contains necessary information to set up Embedded signing. Take a look at our Embedded Signing Walkthrough (app.hellosign.com/api/embeddedSigningWalkthrough) for more information about this.

Author:

  • hellosign

Instance Attribute Summary

Attributes inherited from BaseResource

#data, #headers, #raw_data, #warnings

Instance Method Summary collapse

Methods inherited from BaseResource

#method_missing

Constructor Details

#initialize(hash, key = 'embedded') ⇒ HelloSign::Resource:Embedded

create a new Embedded resource from a hash. If a key is defined then embedded data with be the value of hash, otherwise the hash itself.

Parameters:

  • hash (Hash)

    Embedded’s data

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

    (embedded) Key of the hash, point to where Embedded data is. If nil, then the hash itself.



41
42
43
# File 'lib/hello_sign/resource/embedded.rb', line 41

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

Dynamic Method Handling

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