Class: Echochamber::CounterSignerInfo

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

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(params) ⇒ CounterSignerInfo

Returns a new instance of CounterSignerInfo.

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):


13
14
15
16
# File 'lib/echochamber/widget/counter_signer_info.rb', line 13

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