Class: Echosign::MegaSign
- Inherits:
-
Hash
- Object
- Hash
- Echosign::MegaSign
- Includes:
- Validatable
- Defined in:
- lib/echosign/mega_sign.rb
Instance Attribute Summary collapse
-
#user_email ⇒ Object
Returns the value of attribute user_email.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(user_id = nil, user_email = nil, params) ⇒ Echosign::MegaSign
constructor
Creates an MegaSign object for submission.
Methods included from Validatable
#require_exactly_one, #require_keys, #validate_field
Constructor Details
#initialize(user_id = nil, user_email = nil, params) ⇒ Echosign::MegaSign
Creates an MegaSign object for submission
34 35 36 37 38 39 40 |
# File 'lib/echosign/mega_sign.rb', line 34 def initialize(user_id = nil, user_email = nil, params) @user_id = user_id @user_email = user_email # TODO (cthomas) barf if user_id or user_email are blank require_keys([:signatureType, :recipientSetInfos, :signatureFlow, :fileInfos, :name], params) merge!({ megaSignCreationInfo: params }) end |
Instance Attribute Details
#user_email ⇒ Object
Returns the value of attribute user_email.
9 10 11 |
# File 'lib/echosign/mega_sign.rb', line 9 def user_email @user_email end |
#user_id ⇒ Object
Returns the value of attribute user_id.
9 10 11 |
# File 'lib/echosign/mega_sign.rb', line 9 def user_id @user_id end |