Class: Spree::PageBlocks::Subheading

Inherits:
Spree::PageBlock show all
Defined in:
app/models/spree/page_blocks/subheading.rb

Constant Summary collapse

SIZE_DEFAULT =
'small'

Constants inherited from Spree::PageBlock

Spree::PageBlock::BOTTOM_PADDING_DEFAULT, Spree::PageBlock::CONTAINER_ALIGNMENT_DEFAULT, Spree::PageBlock::TEXT_ALIGNMENT_DEFAULT, Spree::PageBlock::TOP_PADDING_DEFAULT, Spree::PageBlock::WIDTH_DESKTOP_DEFAULT

Instance Method Summary collapse

Instance Method Details

#display_nameObject



12
13
14
# File 'app/models/spree/page_blocks/subheading.rb', line 12

def display_name
  text.to_plain_text.truncate(30)
end

#icon_nameObject



8
9
10
# File 'app/models/spree/page_blocks/subheading.rb', line 8

def icon_name
  'h2'
end