Sha256: 59a88d3f4cb800e6e69a655fab5c18f576d9a8a4f9bd8343be4f91d25ba4e006
Contents?: true
Size: 908 Bytes
Versions: 8
Compression:
Stored size: 908 Bytes
Contents
module MobileWorkflow module Displayable module Steps module StyledContent module Grid def mw_grid_large_section(id:, text:) raise 'Missing id' if id.nil? raise 'Missing text' if text.nil? { id: id, text: text, type: :largeSection } end def mw_grid_small_section(id:, text:) raise 'Missing id' if id.nil? raise 'Missing text' if text.nil? { id: id, text: text, type: :smallSection } end def mw_grid_item(id: self.id, text:, detail_text: nil, preview_url: nil) raise 'Missing id' if id.nil? raise 'Missing text' if text.nil? { id: id, text: text, type: :item, detailText: detail_text, imageURL: preview_url }.compact end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems