Class: Echochamber::WidgetVaultingInfo

Inherits:
Hash
  • Object
show all
Includes:
Validatable
Defined in:
lib/echochamber/widget/widget_vaulting_info.rb

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(params) ⇒ WidgetVaultingInfo

Initialization object

Parameters:

  • params (Hash)

    SYMBOL-referenced Hash containing:

Options Hash (params):

  • :enabled (Boolean)

    For accounts set up for document vaulting and the option to enable per agreement, this determines whether the document is to be vaulted



10
11
12
13
# File 'lib/echochamber/widget/widget_vaulting_info.rb', line 10

def initialize(params)
  require_keys([:enabled], params)
  merge!(params)
end