Class: StrawberryAPI::AssetFeedback
- Defined in:
- lib/strawberry_api/feedback/asset_feedback.rb
Instance Attribute Summary collapse
-
#failure ⇒ Object
Returns the value of attribute failure.
-
#success ⇒ Object
Returns the value of attribute success.
Attributes inherited from Feedback
#action, #created_at, #error, #id, #state, #updated_at
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ AssetFeedback
constructor
A new instance of AssetFeedback.
Constructor Details
#initialize(params = {}) ⇒ AssetFeedback
Returns a new instance of AssetFeedback
8 9 10 11 12 |
# File 'lib/strawberry_api/feedback/asset_feedback.rb', line 8 def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#failure ⇒ Object
Returns the value of attribute failure
6 7 8 |
# File 'lib/strawberry_api/feedback/asset_feedback.rb', line 6 def failure @failure end |
#success ⇒ Object
Returns the value of attribute success
5 6 7 |
# File 'lib/strawberry_api/feedback/asset_feedback.rb', line 5 def success @success end |