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