Class: GroongaDelta::Mapping::Restriction

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga-delta/mapping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Restriction

Returns a new instance of Restriction.



97
98
99
100
101
# File 'lib/groonga-delta/mapping.rb', line 97

def initialize(data)
  @data = data
  @time_max = time_value("time", "max")
  @time_min = time_value("time", "min")
end

Instance Attribute Details

#time_maxObject (readonly)

Returns the value of attribute time_max.



95
96
97
# File 'lib/groonga-delta/mapping.rb', line 95

def time_max
  @time_max
end

#time_minObject (readonly)

Returns the value of attribute time_min.



96
97
98
# File 'lib/groonga-delta/mapping.rb', line 96

def time_min
  @time_min
end