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

#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.



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

Returns:

  • (Boolean)


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

def empty?
  @counts.empty?
end

#local_nameObject



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

def local_name
  translate(@display_name)
end

#range?Boolean

Returns:

  • (Boolean)


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

def range?
  false
end

#to_sObject



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

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