Class: RedmineExtensions::QueryOutputs::TilesOutput

Inherits:
RedmineExtensions::QueryOutput show all
Defined in:
lib/redmine_extensions/query_outputs/tiles_output.rb

Instance Attribute Summary

Attributes inherited from RedmineExtensions::QueryOutput

#query

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RedmineExtensions::QueryOutput

available_for?, available_output_klasses_for, available_outputs_for, #data_partial, #edit_form, #enabled?, filter_registered_for, #h, #header, #initialize, #key, #label, #order, output_available?, output_klass_for, register_output, register_output_for_query, registered_outputs, registered_per_query, registered_whitelists, #render_data, #render_edit, #render_edit_box, #render_edit_form, #variables, whitelist_outputs_for_query

Constructor Details

This class inherits a constructor from RedmineExtensions::QueryOutput

Class Method Details

.keyObject



5
6
7
# File 'lib/redmine_extensions/query_outputs/tiles_output.rb', line 5

def self.key
  'tiles'
end

Instance Method Details

#entityObject



9
10
11
# File 'lib/redmine_extensions/query_outputs/tiles_output.rb', line 9

def entity
  options[:entity]
end

#render_entity_tile(referenced_entity) ⇒ Object



13
14
15
# File 'lib/redmine_extensions/query_outputs/tiles_output.rb', line 13

def render_entity_tile(referenced_entity)
  referenced_entity.to_s
end