Class: Tabulard::TableProcessorResult
- Inherits:
-
Object
- Object
- Tabulard::TableProcessorResult
- Defined in:
- lib/tabulard/table_processor_result.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(result:, messages: []) ⇒ TableProcessorResult
constructor
A new instance of TableProcessorResult.
Constructor Details
#initialize(result:, messages: []) ⇒ TableProcessorResult
Returns a new instance of TableProcessorResult.
5 6 7 8 |
# File 'lib/tabulard/table_processor_result.rb', line 5 def initialize(result:, messages: []) @result = result @messages = end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
10 11 12 |
# File 'lib/tabulard/table_processor_result.rb', line 10 def @messages end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
10 11 12 |
# File 'lib/tabulard/table_processor_result.rb', line 10 def result @result end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 |
# File 'lib/tabulard/table_processor_result.rb', line 12 def ==(other) other.is_a?(self.class) && result == other.result && == other. end |