Class: SiteHub::Collection::SplitRouteCollection::Split

Inherits:
Object
  • Object
show all
Includes:
Equality
Defined in:
lib/sitehub/collection/split_route_collection/split.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Equality

#==, #_clazz, included

Constructor Details

#initialize(lower, upper, value) ⇒ Split

Returns a new instance of Split.



10
11
12
13
14
# File 'lib/sitehub/collection/split_route_collection/split.rb', line 10

def initialize(lower, upper, value)
  @upper = upper
  @lower = lower
  @value = value
end

Instance Attribute Details

#lowerObject (readonly)

Returns the value of attribute lower.



6
7
8
# File 'lib/sitehub/collection/split_route_collection/split.rb', line 6

def lower
  @lower
end

#upperObject (readonly)

Returns the value of attribute upper.



6
7
8
# File 'lib/sitehub/collection/split_route_collection/split.rb', line 6

def upper
  @upper
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/sitehub/collection/split_route_collection/split.rb', line 6

def value
  @value
end

Instance Method Details

#update_valueObject



16
17
18
# File 'lib/sitehub/collection/split_route_collection/split.rb', line 16

def update_value
  @value = yield(@value)
end