Class: Summon::RangeFacet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Schema

inherited

Instance Attribute Details

#countsObject (readonly)

Returns the value of attribute counts.



6
7
8
# File 'lib/summon/schema/range.rb', line 6

def counts
  @counts
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



3
4
5
# File 'lib/summon/schema/range.rb', line 3

def display_name
  @display_name
end

#field_nameObject (readonly)

Returns the value of attribute field_name.



4
5
6
# File 'lib/summon/schema/range.rb', line 4

def field_name
  @field_name
end

#remove_commandObject (readonly)

Returns the value of attribute remove_command.



5
6
7
# File 'lib/summon/schema/range.rb', line 5

def remove_command
  @remove_command
end

Instance Method Details

#clear_filters_commandObject



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

def clear_filters_command
  "removeRangeFilter(#{field_name})"
end

#empty?Boolean

Returns:

  • (Boolean)


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

def empty?
  false
end

#range?Boolean

Returns:

  • (Boolean)


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

def range?
  true
end