Class: Summon::Facet

Inherits:
Schema show all
Defined in:
lib/summon/schema/facet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Schema

inherited

Instance Attribute Details

#combine_modeObject (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

#countsObject (readonly)

Returns the value of attribute counts.



8
9
10
# File 'lib/summon/schema/facet.rb', line 8

def counts
  @counts
end

#display_nameObject (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_nameObject (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

#has_applied_value?Object (readonly)

Returns the value of attribute has_applied_value?.



10
11
12
# File 'lib/summon/schema/facet.rb', line 10

def has_applied_value?
  @has_applied_value?
end

#has_limiting_value?Object (readonly)

Returns the value of attribute has_limiting_value?.



11
12
13
# File 'lib/summon/schema/facet.rb', line 11

def has_limiting_value?
  @has_limiting_value?
end

#list_values_commandObject (readonly)

Returns the value of attribute list_values_command.



12
13
14
# File 'lib/summon/schema/facet.rb', line 12

def list_values_command
  @list_values_command
end

#page_numberObject (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_sizeObject (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_commandObject (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_commandObject (readonly)

Returns the value of attribute remove_value_filters_command.



13
14
15
# File 'lib/summon/schema/facet.rb', line 13

def remove_value_filters_command
  @remove_value_filters_command
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/summon/schema/facet.rb', line 24

def empty?
  @counts.empty?
end

#range?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/summon/schema/facet.rb', line 20

def range?
  false
end

#to_sObject



16
17
18
# File 'lib/summon/schema/facet.rb', line 16

def to_s
  "Facet(#{display_name}, #{field_name})"
end