Class: Faq::MergeService::Result
- Inherits:
-
Data
- Object
- Data
- Faq::MergeService::Result
- Defined in:
- app/services/faq/merge_service.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#merged_count ⇒ Object
readonly
Returns the value of attribute merged_count.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(success: nil, target: nil, merged_count: 0, error: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(success: nil, target: nil, merged_count: 0, error: nil) ⇒ Result
Returns a new instance of Result.
6 7 8 |
# File 'app/services/faq/merge_service.rb', line 6 def initialize(success: nil, target: nil, merged_count: 0, error: nil) super end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
5 6 7 |
# File 'app/services/faq/merge_service.rb', line 5 def error @error end |
#merged_count ⇒ Object (readonly)
Returns the value of attribute merged_count
5 6 7 |
# File 'app/services/faq/merge_service.rb', line 5 def merged_count @merged_count end |
#success ⇒ Object (readonly)
Returns the value of attribute success
5 6 7 |
# File 'app/services/faq/merge_service.rb', line 5 def success @success end |
#target ⇒ Object (readonly)
Returns the value of attribute target
5 6 7 |
# File 'app/services/faq/merge_service.rb', line 5 def target @target end |