Class: CommandFeedback::Service::ErrorFeedback
- Inherits:
-
Object
- Object
- CommandFeedback::Service::ErrorFeedback
- Defined in:
- lib/command_feedback/feedback.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(error_data) ⇒ ErrorFeedback
constructor
A new instance of ErrorFeedback.
- #successfull? ⇒ Boolean
Constructor Details
#initialize(error_data) ⇒ ErrorFeedback
Returns a new instance of ErrorFeedback.
50 51 52 53 54 55 56 57 |
# File 'lib/command_feedback/feedback.rb', line 50 def initialize(error_data) @errors = [] error_data.each { |attribute, errors| errors.each { |error| @errors << "#{attribute} #{error}" } } end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
48 49 50 |
# File 'lib/command_feedback/feedback.rb', line 48 def errors @errors end |
Instance Method Details
#successfull? ⇒ Boolean
59 60 61 |
# File 'lib/command_feedback/feedback.rb', line 59 def successfull? false end |