Class: SolutionData
- Inherits:
-
Object
- Object
- SolutionData
- Defined in:
- lib/libowl/solution_types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#region ⇒ Object
Returns the value of attribute region.
-
#sol_name ⇒ Object
Returns the value of attribute sol_name.
-
#target ⇒ Object
Returns the value of attribute target.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(region, time, target, sol_name, data) ⇒ SolutionData
constructor
A new instance of SolutionData.
- #to_s ⇒ Object
Constructor Details
#initialize(region, time, target, sol_name, data) ⇒ SolutionData
Returns a new instance of SolutionData.
37 38 39 40 41 42 43 |
# File 'lib/libowl/solution_types.rb', line 37 def initialize(region, time, target, sol_name, data) @region = region @time = time @target = target @sol_name = sol_name @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
25 26 27 |
# File 'lib/libowl/solution_types.rb', line 25 def data @data end |
#region ⇒ Object
Returns the value of attribute region.
25 26 27 |
# File 'lib/libowl/solution_types.rb', line 25 def region @region end |
#sol_name ⇒ Object
Returns the value of attribute sol_name.
25 26 27 |
# File 'lib/libowl/solution_types.rb', line 25 def sol_name @sol_name end |
#target ⇒ Object
Returns the value of attribute target.
25 26 27 |
# File 'lib/libowl/solution_types.rb', line 25 def target @target end |
#time ⇒ Object
Returns the value of attribute time.
25 26 27 |
# File 'lib/libowl/solution_types.rb', line 25 def time @time end |
Instance Method Details
#to_s ⇒ Object
45 46 47 |
# File 'lib/libowl/solution_types.rb', line 45 def to_s() return "#{@region}:#{@target}:#{@sol_name} @ time #{@time} -> #{@data.unpack('H*')}" end |