Sha256: 578d8084bae9eddf74a7654d667e2adcdc2edf47c79aa19ce6b61a70b017a506

Contents?: true

Size: 394 Bytes

Versions: 62

Compression:

Stored size: 394 Bytes

Contents

module Workarea
  module Storefront
    module ContentBlocks
      class ImageGroupViewModel < ContentBlockViewModel
        def link
          data[:link]
        end

        def asset
          find_asset(data[:image])
        end

        def alt
          data[:alt]
        end

        # TODO v4 remove
        def odd?
          series.size.odd?
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.4.13 app/view_models/workarea/storefront/content_blocks/image_group_view_model.rb
workarea-storefront-3.4.12 app/view_models/workarea/storefront/content_blocks/image_group_view_model.rb