Class: Koi::SummaryList::BooleanComponent

Inherits:
Base
  • Object
show all
Defined in:
app/components/koi/summary_list/boolean_component.rb

Instance Method Summary collapse

Methods inherited from Base

#attribute_name, #call, #initialize, #inspect, #raw_value, #to_s

Constructor Details

This class inherits a constructor from Koi::SummaryList::Base

Instance Method Details

#attribute_valueObject



10
11
12
# File 'app/components/koi/summary_list/boolean_component.rb', line 10

def attribute_value
  raw_value ? "Yes" : "No"
end

#render?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/components/koi/summary_list/boolean_component.rb', line 6

def render?
  true
end