Class: Summon::Facet
Instance Attribute Summary collapse
-
#combine_mode ⇒ Object
readonly
Returns the value of attribute combine_mode.
-
#counts ⇒ Object
readonly
Returns the value of attribute counts.
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#field_name ⇒ Object
readonly
Returns the value of attribute field_name.
-
#page_number ⇒ Object
readonly
Returns the value of attribute page_number.
-
#page_size ⇒ Object
readonly
Returns the value of attribute page_size.
-
#remove_command ⇒ Object
readonly
Returns the value of attribute remove_command.
-
#remove_value_filters_command ⇒ Object
readonly
Returns the value of attribute remove_value_filters_command.
Instance Method Summary collapse
Methods inherited from Schema
Instance Attribute Details
#combine_mode ⇒ Object (readonly)
Returns the value of attribute combine_mode.
6 7 8 |
# File 'lib/summon/schema/facet.rb', line 6 def combine_mode @combine_mode end |
#counts ⇒ Object (readonly)
Returns the value of attribute counts.
8 9 10 |
# File 'lib/summon/schema/facet.rb', line 8 def counts @counts end |
#display_name ⇒ Object (readonly)
Returns the value of attribute display_name.
4 5 6 |
# File 'lib/summon/schema/facet.rb', line 4 def display_name @display_name end |
#field_name ⇒ Object (readonly)
Returns the value of attribute field_name.
5 6 7 |
# File 'lib/summon/schema/facet.rb', line 5 def field_name @field_name end |
#page_number ⇒ Object (readonly)
Returns the value of attribute page_number.
7 8 9 |
# File 'lib/summon/schema/facet.rb', line 7 def page_number @page_number end |
#page_size ⇒ Object (readonly)
Returns the value of attribute page_size.
3 4 5 |
# File 'lib/summon/schema/facet.rb', line 3 def page_size @page_size end |
#remove_command ⇒ Object (readonly)
Returns the value of attribute remove_command.
9 10 11 |
# File 'lib/summon/schema/facet.rb', line 9 def remove_command @remove_command end |
#remove_value_filters_command ⇒ Object (readonly)
Returns the value of attribute remove_value_filters_command.
10 11 12 |
# File 'lib/summon/schema/facet.rb', line 10 def remove_value_filters_command @remove_value_filters_command end |
Instance Method Details
#empty? ⇒ Boolean
21 22 23 |
# File 'lib/summon/schema/facet.rb', line 21 def empty? @counts.empty? end |
#local_name ⇒ Object
25 26 27 |
# File 'lib/summon/schema/facet.rb', line 25 def local_name translate(@display_name) end |
#range? ⇒ Boolean
17 18 19 |
# File 'lib/summon/schema/facet.rb', line 17 def range? false end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/summon/schema/facet.rb', line 13 def to_s "Facet(#{display_name}, #{field_name})" end |