Exception: Fortitude::Errors::MissingNeed

Inherits:
Base
  • Object
show all
Defined in:
lib/fortitude/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(widget, missing_needs, assigns) ⇒ MissingNeed

Returns a new instance of MissingNeed.


8
9
10
11
12
13
# File 'lib/fortitude/errors.rb', line 8

def initialize(widget, missing_needs, assigns)
  super(%{The widget #{widget} requires the following parameters to render, but they were not supplied: #{missing_needs.sort_by(&:to_s).join(", ")}})
  @widget = widget
  @missing_needs = missing_needs
  @assigns = assigns
end

Instance Attribute Details

#assignsObject (readonly)

Returns the value of attribute assigns


6
7
8
# File 'lib/fortitude/errors.rb', line 6

def assigns
  @assigns
end

#missing_needsObject (readonly)

Returns the value of attribute missing_needs


6
7
8
# File 'lib/fortitude/errors.rb', line 6

def missing_needs
  @missing_needs
end

#widgetObject (readonly)

Returns the value of attribute widget


6
7
8
# File 'lib/fortitude/errors.rb', line 6

def widget
  @widget
end