Class: NfgUi::UI::NetworkForGood

Inherits:
Object
  • Object
show all
Includes:
Utilities::Initializer
Defined in:
lib/nfg_ui/ui/network_for_good.rb

Instance Attribute Summary collapse

Attributes included from Utilities::Initializer

#class_name, #component, #component_name, #options, #traits

Instance Method Summary collapse

Methods included from Utilities::Initializer

#render_component

Constructor Details

#initialize(view_context, component_name = nil, *traits, **options, &block) ⇒ NetworkForGood

Returns a new instance of NetworkForGood.



10
11
12
13
# File 'lib/nfg_ui/ui/network_for_good.rb', line 10

def initialize(view_context, component_name = nil, *traits, **options, &block)
  self.view_context = view_context
  initializer(component_name, *traits, **options, &block)
end

Instance Attribute Details

#view_contextObject

Returns the value of attribute view_context.



8
9
10
# File 'lib/nfg_ui/ui/network_for_good.rb', line 8

def view_context
  @view_context
end