Class: SiteHub::Collection::SplitRouteCollection::Split
- Inherits:
-
Object
- Object
- SiteHub::Collection::SplitRouteCollection::Split
- Includes:
- Equality
- Defined in:
- lib/sitehub/collection/split_route_collection/split.rb
Instance Attribute Summary collapse
-
#lower ⇒ Object
readonly
Returns the value of attribute lower.
-
#upper ⇒ Object
readonly
Returns the value of attribute upper.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(lower, upper, value) ⇒ Split
constructor
A new instance of Split.
- #update_value ⇒ Object
Methods included from Equality
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
#lower ⇒ Object (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 |
#upper ⇒ Object (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 |
#value ⇒ Object (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_value ⇒ Object
16 17 18 |
# File 'lib/sitehub/collection/split_route_collection/split.rb', line 16 def update_value @value = yield(@value) end |