Class: GetStream::Generated::Models::SharedLocationResponseData
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::SharedLocationResponseData
show all
- Defined in:
- lib/getstream_ruby/generated/models/shared_location_response_data.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 47
def initialize(attributes = {})
super(attributes)
@channel_cid = attributes[:channel_cid] || attributes['channel_cid']
@created_at = attributes[:created_at] || attributes['created_at']
@created_by_device_id = attributes[:created_by_device_id] || attributes['created_by_device_id']
@latitude = attributes[:latitude] || attributes['latitude']
@longitude = attributes[:longitude] || attributes['longitude']
@message_id = attributes[:message_id] || attributes['message_id']
@updated_at = attributes[:updated_at] || attributes['updated_at']
@user_id = attributes[:user_id] || attributes['user_id']
@end_at = attributes[:end_at] || attributes['end_at'] || nil
@channel = attributes[:channel] || attributes['channel'] || nil
@message = attributes[:message] || attributes['message'] || nil
end
|
Instance Attribute Details
41
42
43
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 41
def channel
@channel
end
|
#channel_cid ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 14
def channel_cid
@channel_cid
end
|
#created_at ⇒ DateTime
17
18
19
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 17
def created_at
@created_at
end
|
#created_by_device_id ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 20
def created_by_device_id
@created_by_device_id
end
|
#end_at ⇒ DateTime
38
39
40
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 38
def end_at
@end_at
end
|
#latitude ⇒ Float
23
24
25
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 23
def latitude
@latitude
end
|
#longitude ⇒ Float
26
27
28
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 26
def longitude
@longitude
end
|
44
45
46
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 44
def message
@message
end
|
#message_id ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 29
def message_id
@message_id
end
|
#updated_at ⇒ DateTime
32
33
34
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 32
def updated_at
@updated_at
end
|
#user_id ⇒ String
35
36
37
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 35
def user_id
@user_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# File 'lib/getstream_ruby/generated/models/shared_location_response_data.rb', line 63
def self.json_field_mappings
{
channel_cid: 'channel_cid',
created_at: 'created_at',
created_by_device_id: 'created_by_device_id',
latitude: 'latitude',
longitude: 'longitude',
message_id: 'message_id',
updated_at: 'updated_at',
user_id: 'user_id',
end_at: 'end_at',
channel: 'channel',
message: 'message'
}
end
|