Class: GetStream::Generated::Models::UserFeedbackResponse

Inherits:
BaseModel
  • Object
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(attributes = {}) ⇒ UserFeedbackResponse

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[:cid] || attributes['cid']
  @rating = attributes[:rating] || attributes['rating']
  @reason = attributes[:reason] || attributes['reason']
  @sdk = attributes[:sdk] || attributes['sdk']
  @sdk_version = attributes[:sdk_version] || attributes['sdk_version']
  @session_id = attributes[:session_id] || attributes['session_id']
  @user_id = attributes[:user_id] || attributes['user_id']
  @platform = attributes[:platform] || attributes['platform']
  @custom = attributes[:custom] || attributes['custom'] || nil
end

Instance Attribute Details

#cidString

Returns:

  • (String)


14
15
16
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 14

def cid
  @cid
end

#customObject

Returns:

  • (Object)


38
39
40
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 38

def custom
  @custom
end

#platformPlatformDataResponse



35
36
37
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 35

def platform
  @platform
end

#ratingInteger

Returns:

  • (Integer)


17
18
19
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 17

def rating
  @rating
end

#reasonString

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 20

def reason
  @reason
end

#sdkString

Returns:

  • (String)


23
24
25
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 23

def sdk
  @sdk
end

#sdk_versionString

Returns:

  • (String)


26
27
28
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 26

def sdk_version
  @sdk_version
end

#session_idString

Returns:

  • (String)


29
30
31
# File 'lib/getstream_ruby/generated/models/user_feedback_response.rb', line 29

def session_id
  @session_id
end

#user_idString

Returns:

  • (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_mappingsObject

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