Module: GeoConcerns::GeoWorksHelper
- Defined in:
- app/helpers/geo_concerns/geo_works_helper.rb
Instance Method Summary collapse
-
#child_geo_works_type(presenter) ⇒ Object
Returns human readable name of child geo work type.
-
#geo_work_type(presenter) ⇒ Object
Returns human readable name of geo work type.
Instance Method Details
#child_geo_works_type(presenter) ⇒ Object
Returns human readable name of child geo work type. @return
6 7 8 9 10 11 12 13 |
# File 'app/helpers/geo_concerns/geo_works_helper.rb', line 6 def child_geo_works_type(presenter) case presenter.class.to_s when /ImageWorkShowPresenter/ 'Raster' when /RasterWorkShowPresenter/ 'Vector' end end |
#geo_work_type(presenter) ⇒ Object
Returns human readable name of geo work type. @return
18 19 20 |
# File 'app/helpers/geo_concerns/geo_works_helper.rb', line 18 def geo_work_type(presenter) presenter.human_readable_type.sub('Work', '') end |