Class: Contrek::Concurrent::InnerPolyline
- Inherits:
-
Object
- Object
- Contrek::Concurrent::InnerPolyline
- Defined in:
- lib/contrek/finder/concurrent/inner_polyline.rb
Instance Attribute Summary collapse
-
#recombined ⇒ Object
readonly
Returns the value of attribute recombined.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
Instance Method Summary collapse
-
#initialize(shape: nil, raw_coordinates: [], sequence: nil, recombined: false) ⇒ InnerPolyline
constructor
A new instance of InnerPolyline.
- #raw ⇒ Object
- #shape ⇒ Object
- #vertical_bounds ⇒ Object
Constructor Details
#initialize(shape: nil, raw_coordinates: [], sequence: nil, recombined: false) ⇒ InnerPolyline
Returns a new instance of InnerPolyline.
6 7 8 9 10 11 |
# File 'lib/contrek/finder/concurrent/inner_polyline.rb', line 6 def initialize(shape: nil, raw_coordinates: [], sequence: nil, recombined: false) @raw = raw_coordinates if raw_coordinates @sequence = sequence if sequence @recombined = recombined @shape = shape end |
Instance Attribute Details
#recombined ⇒ Object (readonly)
Returns the value of attribute recombined.
4 5 6 |
# File 'lib/contrek/finder/concurrent/inner_polyline.rb', line 4 def recombined @recombined end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
4 5 6 |
# File 'lib/contrek/finder/concurrent/inner_polyline.rb', line 4 def sequence @sequence end |
Instance Method Details
#raw ⇒ Object
13 14 15 |
# File 'lib/contrek/finder/concurrent/inner_polyline.rb', line 13 def raw @sequence ? @sequence.to_a : @raw end |
#shape ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/contrek/finder/concurrent/inner_polyline.rb', line 25 def shape if @sequence @sequence.shape else @shape end end |
#vertical_bounds ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/contrek/finder/concurrent/inner_polyline.rb', line 17 def vertical_bounds if @sequence @sequence.vertical_bounds else raw_vertical_bounds end end |