Class: GetStream::Generated::Models::UserFeedbackResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::UserFeedbackResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/user_feedback_response.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
Initialize with attributes
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 41
def initialize(attributes = {})
super(attributes)
@cid = attributes.fetch(:cid) { attributes.fetch('cid', nil) }
@rating = attributes.fetch(:rating) { attributes.fetch('rating', nil) }
@reason = attributes.fetch(:reason) { attributes.fetch('reason', nil) }
@sdk = attributes.fetch(:sdk) { attributes.fetch('sdk', nil) }
@sdk_version = attributes.fetch(:sdk_version) { attributes.fetch('sdk_version', nil) }
@session_id = attributes.fetch(:session_id) { attributes.fetch('session_id', nil) }
@user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) }
@platform = attributes.fetch(:platform) { attributes.fetch('platform', nil) }
@custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) }
end
|
Instance Attribute Details
#cid ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 14
def cid
@cid
end
|
#custom ⇒ Object
38
39
40
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 38
def custom
@custom
end
|
35
36
37
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 35
def platform
@platform
end
|
#rating ⇒ Integer
17
18
19
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 17
def rating
@rating
end
|
#reason ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 20
def reason
@reason
end
|
#sdk ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 23
def sdk
@sdk
end
|
#sdk_version ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 26
def sdk_version
@sdk_version
end
|
#session_id ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 29
def session_id
@session_id
end
|
#user_id ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 32
def user_id
@user_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 55
def self.json_field_mappings
{
cid: 'cid',
rating: 'rating',
reason: 'reason',
sdk: 'sdk',
sdk_version: 'sdk_version',
session_id: 'session_id',
user_id: 'user_id',
platform: 'platform',
custom: 'custom'
}
end
|