Class: SirTrevorRails::Blocks::SolrDocumentsCarouselBlock

Inherits:
SolrDocumentsBlock
  • Object
show all
Defined in:
app/models/sir_trevor_rails/blocks/solr_documents_carousel_block.rb

Overview

Carousel with documents and text block

Instance Attribute Summary

Attributes inherited from SolrDocumentsBlock

#solr_helper

Instance Method Summary collapse

Methods inherited from SolrDocumentsBlock

#documents, #documents?, #each_document, #primary_caption?, #primary_caption_field, #secondary_caption?, #secondary_caption_field, #with_solr_helper, #zpr_link?

Methods included from Displayable

#item_ids, #items, #ordered_items

Methods included from Textable

#content_align, #text, #text?, #text_align

Instance Method Details

#intervalObject



10
11
12
13
14
15
16
17
# File 'app/models/sir_trevor_rails/blocks/solr_documents_carousel_block.rb', line 10

def interval
  val = send(:'auto-play-images')
  if val == 'true'
    send(:'auto-play-images-interval')
  else
    false
  end
end

#max_heightObject



6
7
8
# File 'app/models/sir_trevor_rails/blocks/solr_documents_carousel_block.rb', line 6

def max_height
  send(:'max-height')
end