Class: StrawberryAPI::AssetFeedback

Inherits:
Feedback
  • Object
show all
Defined in:
lib/strawberry_api/feedback/asset_feedback.rb

Instance Attribute Summary collapse

Attributes inherited from Feedback

#action, #created_at, #error, #id, #state, #updated_at

Instance Method Summary collapse

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

#failureObject

Returns the value of attribute failure



6
7
8
# File 'lib/strawberry_api/feedback/asset_feedback.rb', line 6

def failure
  @failure
end

#successObject

Returns the value of attribute success



5
6
7
# File 'lib/strawberry_api/feedback/asset_feedback.rb', line 5

def success
  @success
end