Class: StrawberryAPI::Feedback

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

Direct Known Subclasses

AssetFeedback, CopyToFeedback, ProjectFeedback

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject

Returns the value of attribute action



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

def action
  @action
end

#created_atObject

Returns the value of attribute created_at



9
10
11
# File 'lib/strawberry_api/feedback.rb', line 9

def created_at
  @created_at
end

#errorObject

Returns the value of attribute error



8
9
10
# File 'lib/strawberry_api/feedback.rb', line 8

def error
  @error
end

#idObject

Returns the value of attribute id



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

def id
  @id
end

#stateObject

Returns the value of attribute state



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

def state
  @state
end

#updated_atObject

Returns the value of attribute updated_at



10
11
12
# File 'lib/strawberry_api/feedback.rb', line 10

def updated_at
  @updated_at
end