Class: Workarea::Storefront::ContentBlocks::TaxonomyViewModel
- Inherits:
-
Workarea::Storefront::ContentBlockViewModel
- Object
- ApplicationViewModel
- Workarea::Storefront::ContentBlockViewModel
- Workarea::Storefront::ContentBlocks::TaxonomyViewModel
- Includes:
- TaxonLookup
- Defined in:
- app/view_models/workarea/storefront/content_blocks/taxonomy_view_model.rb
Instance Method Summary collapse
Methods included from TaxonLookup
#find_taxons_for, #show_starting_taxon?, #starting_taxon, #taxons
Methods inherited from Workarea::Storefront::ContentBlockViewModel
#asset_alt_text, #assets, #find_asset, #locals, #partial, #series, wrap
Instance Method Details
#left_image? ⇒ Boolean
7 8 9 |
# File 'app/view_models/workarea/storefront/content_blocks/taxonomy_view_model.rb', line 7 def left_image? data[:image].present? && data[:image_position].casecmp('left').zero? end |
#right_image? ⇒ Boolean
11 12 13 |
# File 'app/view_models/workarea/storefront/content_blocks/taxonomy_view_model.rb', line 11 def right_image? data[:image].present? && data[:image_position].casecmp('right').zero? end |