deimos-ruby 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/karafka.rb +71 -1
- data/lib/deimos/schema_backends/avro_schema_coercer.rb +2 -0
- data/lib/deimos/schema_class/record.rb +2 -2
- data/lib/deimos/version.rb +1 -1
- data/lib/generators/deimos/schema_class/templates/schema_enum.rb.tt +6 -3
- data/lib/generators/deimos/schema_class_generator.rb +10 -14
- data/regenerate_test_schema_classes.rb +0 -66
- data/spec/schemas/my_namespace/my_schema.rb +1 -1
- data/spec/schemas/my_namespace/my_updated_schema.rb +2 -1
- data/spec/snapshots/consumers-no-nest.snap +95 -45
- data/spec/snapshots/consumers.snap +107 -49
- data/spec/snapshots/consumers_and_producers-no-nest.snap +90 -67
- data/spec/snapshots/consumers_and_producers.snap +102 -71
- data/spec/snapshots/consumers_circular-no-nest.snap +95 -45
- data/spec/snapshots/consumers_circular.snap +107 -49
- data/spec/snapshots/consumers_complex_types-no-nest.snap +95 -45
- data/spec/snapshots/consumers_complex_types.snap +107 -49
- data/spec/snapshots/consumers_nested-no-nest.snap +88 -38
- data/spec/snapshots/consumers_nested.snap +100 -42
- data/spec/snapshots/namespace_folders.snap +106 -73
- data/spec/snapshots/namespace_map.snap +106 -73
- data/spec/snapshots/producers_with_key-no-nest.snap +97 -60
- data/spec/snapshots/producers_with_key.snap +109 -64
- metadata +2 -2
@@ -16,7 +16,8 @@ module Schemas; module Com; module MyNamespace
|
|
16
16
|
attr_accessor :a_record_field
|
17
17
|
|
18
18
|
# @override
|
19
|
-
def initialize(a_record_field: nil)
|
19
|
+
def initialize(_from_message: false, a_record_field: nil)
|
20
|
+
@_from_message = _from_message
|
20
21
|
super
|
21
22
|
self.a_record_field = a_record_field
|
22
23
|
end
|
@@ -41,13 +42,20 @@ module Schemas; module Com; module MyNamespace
|
|
41
42
|
|
42
43
|
# Autogenerated Schema for Enum at com.my-namespace.AnEnum
|
43
44
|
class AnEnum < Deimos::SchemaClass::Enum
|
44
|
-
# @return ['sym1', 'sym2']
|
45
|
-
attr_accessor :an_enum
|
46
|
-
|
47
45
|
# @override
|
48
46
|
def symbols
|
49
47
|
%w(sym1 sym2)
|
50
48
|
end
|
49
|
+
|
50
|
+
|
51
|
+
def sym1?
|
52
|
+
@value == 'sym1'
|
53
|
+
end
|
54
|
+
|
55
|
+
def sym2?
|
56
|
+
@value == 'sym2'
|
57
|
+
end
|
58
|
+
|
51
59
|
end
|
52
60
|
|
53
61
|
|
@@ -91,7 +99,7 @@ module Schemas; module Com; module MyNamespace
|
|
91
99
|
end
|
92
100
|
|
93
101
|
# @override
|
94
|
-
def initialize(a_string: nil,
|
102
|
+
def initialize(_from_message: false, a_string: nil,
|
95
103
|
a_int: nil,
|
96
104
|
a_long: nil,
|
97
105
|
a_float: nil,
|
@@ -103,6 +111,7 @@ module Schemas; module Com; module MyNamespace
|
|
103
111
|
timestamp: nil,
|
104
112
|
message_id: nil,
|
105
113
|
a_record: nil)
|
114
|
+
@_from_message = _from_message
|
106
115
|
super
|
107
116
|
self.a_string = a_string
|
108
117
|
self.a_int = a_int
|
@@ -128,13 +137,6 @@ module Schemas; module Com; module MyNamespace
|
|
128
137
|
'com.my-namespace'
|
129
138
|
end
|
130
139
|
|
131
|
-
def self.tombstone(key)
|
132
|
-
record = self.allocate
|
133
|
-
record.tombstone_key = key
|
134
|
-
record.a_string = key
|
135
|
-
record
|
136
|
-
end
|
137
|
-
|
138
140
|
# @override
|
139
141
|
def as_json(_opts={})
|
140
142
|
{
|
@@ -180,10 +182,11 @@ module Schemas; module Com; module MyNamespace
|
|
180
182
|
attr_accessor :some_optional_int
|
181
183
|
|
182
184
|
# @override
|
183
|
-
def initialize(some_int: nil,
|
185
|
+
def initialize(_from_message: false, some_int: nil,
|
184
186
|
some_float: nil,
|
185
187
|
some_string: nil,
|
186
188
|
some_optional_int: nil)
|
189
|
+
@_from_message = _from_message
|
187
190
|
super
|
188
191
|
self.some_int = some_int
|
189
192
|
self.some_float = some_float
|
@@ -239,11 +242,12 @@ module Schemas; module Com; module MyNamespace
|
|
239
242
|
end
|
240
243
|
|
241
244
|
# @override
|
242
|
-
def initialize(test_id: nil,
|
245
|
+
def initialize(_from_message: false, test_id: nil,
|
243
246
|
test_float: nil,
|
244
247
|
test_array: nil,
|
245
248
|
some_nested_record: nil,
|
246
249
|
some_optional_record: nil)
|
250
|
+
@_from_message = _from_message
|
247
251
|
super
|
248
252
|
self.test_id = test_id
|
249
253
|
self.test_float = test_float
|
@@ -292,30 +296,19 @@ module Schemas; module Com; module MyNamespace
|
|
292
296
|
# Autogenerated Schema for Record at com.my-namespace.MySchema
|
293
297
|
class MySchema < Deimos::SchemaClass::Record
|
294
298
|
|
295
|
-
### Attribute Readers ###
|
296
|
-
# @return [MySchemaKey]
|
297
|
-
attr_reader :payload_key
|
298
|
-
|
299
299
|
### Attribute Accessors ###
|
300
300
|
# @return [String]
|
301
301
|
attr_accessor :test_id
|
302
302
|
# @return [Integer]
|
303
303
|
attr_accessor :some_int
|
304
304
|
|
305
|
-
### Attribute Writers ###
|
306
|
-
# @return [MySchemaKey]
|
307
|
-
def payload_key=(value)
|
308
|
-
@payload_key = MySchemaKey.initialize_from_value(value, from_message: self._from_message)
|
309
|
-
end
|
310
|
-
|
311
305
|
# @override
|
312
|
-
def initialize(test_id: nil,
|
313
|
-
some_int: nil
|
314
|
-
|
306
|
+
def initialize(_from_message: false, test_id: nil,
|
307
|
+
some_int: nil)
|
308
|
+
@_from_message = _from_message
|
315
309
|
super
|
316
310
|
self.test_id = test_id
|
317
311
|
self.some_int = some_int
|
318
|
-
self.payload_key = payload_key
|
319
312
|
end
|
320
313
|
|
321
314
|
# @override
|
@@ -328,19 +321,11 @@ module Schemas; module Com; module MyNamespace
|
|
328
321
|
'com.my-namespace'
|
329
322
|
end
|
330
323
|
|
331
|
-
def self.tombstone(key)
|
332
|
-
record = self.allocate
|
333
|
-
record.tombstone_key = MySchemaKey.initialize_from_value(key, from_message: self._from_message)
|
334
|
-
record.payload_key = key
|
335
|
-
record
|
336
|
-
end
|
337
|
-
|
338
324
|
# @override
|
339
325
|
def as_json(_opts={})
|
340
326
|
{
|
341
327
|
'test_id' => @test_id,
|
342
|
-
'some_int' => @some_int
|
343
|
-
'payload_key' => @payload_key&.as_json
|
328
|
+
'some_int' => @some_int
|
344
329
|
}
|
345
330
|
end
|
346
331
|
end
|
@@ -363,8 +348,9 @@ module Schemas; module Com; module MyNamespace
|
|
363
348
|
attr_accessor :part_two
|
364
349
|
|
365
350
|
# @override
|
366
|
-
def initialize(part_one: nil,
|
351
|
+
def initialize(_from_message: false, part_one: nil,
|
367
352
|
part_two: nil)
|
353
|
+
@_from_message = _from_message
|
368
354
|
super
|
369
355
|
self.part_one = part_one
|
370
356
|
self.part_two = part_two
|
@@ -405,7 +391,8 @@ module Schemas; module Com; module MyNamespace
|
|
405
391
|
attr_accessor :id
|
406
392
|
|
407
393
|
# @override
|
408
|
-
def initialize(id: nil)
|
394
|
+
def initialize(_from_message: false, id: nil)
|
395
|
+
@_from_message = _from_message
|
409
396
|
super
|
410
397
|
self.id = id
|
411
398
|
end
|
@@ -444,7 +431,8 @@ module Schemas; module Com; module MyNamespace
|
|
444
431
|
attr_accessor :test_id
|
445
432
|
|
446
433
|
# @override
|
447
|
-
def initialize(test_id: nil)
|
434
|
+
def initialize(_from_message: false, test_id: nil)
|
435
|
+
@_from_message = _from_message
|
448
436
|
super
|
449
437
|
self.test_id = test_id
|
450
438
|
end
|
@@ -485,8 +473,9 @@ module Schemas; module Com; module MyNamespace
|
|
485
473
|
attr_accessor :some_bool
|
486
474
|
|
487
475
|
# @override
|
488
|
-
def initialize(test_id: nil,
|
476
|
+
def initialize(_from_message: false, test_id: nil,
|
489
477
|
some_bool: nil)
|
478
|
+
@_from_message = _from_message
|
490
479
|
super
|
491
480
|
self.test_id = test_id
|
492
481
|
self.some_bool = some_bool
|
@@ -531,7 +520,8 @@ module Schemas; module Com; module MyNamespace
|
|
531
520
|
attr_accessor :property
|
532
521
|
|
533
522
|
# @override
|
534
|
-
def initialize(property: nil)
|
523
|
+
def initialize(_from_message: false, property: nil)
|
524
|
+
@_from_message = _from_message
|
535
525
|
super
|
536
526
|
self.property = property
|
537
527
|
end
|
@@ -568,7 +558,8 @@ module Schemas; module Com; module MyNamespace
|
|
568
558
|
end
|
569
559
|
|
570
560
|
# @override
|
571
|
-
def initialize(properties: {})
|
561
|
+
def initialize(_from_message: false, properties: {})
|
562
|
+
@_from_message = _from_message
|
572
563
|
super
|
573
564
|
self.properties = properties
|
574
565
|
end
|
@@ -611,7 +602,8 @@ module Schemas; module Com; module MyNamespace
|
|
611
602
|
attr_accessor :a_record_field
|
612
603
|
|
613
604
|
# @override
|
614
|
-
def initialize(a_record_field: nil)
|
605
|
+
def initialize(_from_message: false, a_record_field: nil)
|
606
|
+
@_from_message = _from_message
|
615
607
|
super
|
616
608
|
self.a_record_field = a_record_field
|
617
609
|
end
|
@@ -636,35 +628,56 @@ module Schemas; module Com; module MyNamespace
|
|
636
628
|
|
637
629
|
# Autogenerated Schema for Enum at com.my-namespace.AnEnum
|
638
630
|
class AnEnum < Deimos::SchemaClass::Enum
|
639
|
-
# @return ['sym1', 'sym2']
|
640
|
-
attr_accessor :an_enum
|
641
|
-
|
642
631
|
# @override
|
643
632
|
def symbols
|
644
633
|
%w(sym1 sym2)
|
645
634
|
end
|
635
|
+
|
636
|
+
|
637
|
+
def sym1?
|
638
|
+
@value == 'sym1'
|
639
|
+
end
|
640
|
+
|
641
|
+
def sym2?
|
642
|
+
@value == 'sym2'
|
643
|
+
end
|
644
|
+
|
646
645
|
end
|
647
646
|
|
648
647
|
# Autogenerated Schema for Enum at com.my-namespace.AnotherEnum
|
649
648
|
class AnotherEnum < Deimos::SchemaClass::Enum
|
650
|
-
# @return ['sym3', 'sym4']
|
651
|
-
attr_accessor :another_enum
|
652
|
-
|
653
649
|
# @override
|
654
650
|
def symbols
|
655
651
|
%w(sym3 sym4)
|
656
652
|
end
|
653
|
+
|
654
|
+
|
655
|
+
def sym3?
|
656
|
+
@value == 'sym3'
|
657
|
+
end
|
658
|
+
|
659
|
+
def sym4?
|
660
|
+
@value == 'sym4'
|
661
|
+
end
|
662
|
+
|
657
663
|
end
|
658
664
|
|
659
665
|
# Autogenerated Schema for Enum at com.my-namespace.YetAnotherEnum
|
660
666
|
class YetAnotherEnum < Deimos::SchemaClass::Enum
|
661
|
-
# @return ['sym5', 'sym6']
|
662
|
-
attr_accessor :yet_another_enum
|
663
|
-
|
664
667
|
# @override
|
665
668
|
def symbols
|
666
669
|
%w(sym5 sym6)
|
667
670
|
end
|
671
|
+
|
672
|
+
|
673
|
+
def sym5?
|
674
|
+
@value == 'sym5'
|
675
|
+
end
|
676
|
+
|
677
|
+
def sym6?
|
678
|
+
@value == 'sym6'
|
679
|
+
end
|
680
|
+
|
668
681
|
end
|
669
682
|
|
670
683
|
|
@@ -741,7 +754,7 @@ module Schemas; module Com; module MyNamespace
|
|
741
754
|
end
|
742
755
|
|
743
756
|
# @override
|
744
|
-
def initialize(test_id: nil,
|
757
|
+
def initialize(_from_message: false, test_id: nil,
|
745
758
|
test_float: nil,
|
746
759
|
test_string_array: ["test"],
|
747
760
|
test_int_array: [123],
|
@@ -754,6 +767,7 @@ module Schemas; module Com; module MyNamespace
|
|
754
767
|
some_enum_array: nil,
|
755
768
|
some_optional_enum: nil,
|
756
769
|
some_enum_with_default: "sym6")
|
770
|
+
@_from_message = _from_message
|
757
771
|
super
|
758
772
|
self.test_id = test_id
|
759
773
|
self.test_float = test_float
|
@@ -824,11 +838,12 @@ module Schemas; module Com; module MyNamespace
|
|
824
838
|
attr_accessor :timestamp
|
825
839
|
|
826
840
|
# @override
|
827
|
-
def initialize(test_id: nil,
|
841
|
+
def initialize(_from_message: false, test_id: nil,
|
828
842
|
updated_at: nil,
|
829
843
|
some_int: nil,
|
830
844
|
some_datetime_int: nil,
|
831
845
|
timestamp: nil)
|
846
|
+
@_from_message = _from_message
|
832
847
|
super
|
833
848
|
self.test_id = test_id
|
834
849
|
self.updated_at = updated_at
|
@@ -881,10 +896,11 @@ module Schemas; module Com; module MyNamespace
|
|
881
896
|
attr_accessor :timestamp
|
882
897
|
|
883
898
|
# @override
|
884
|
-
def initialize(test_id: nil,
|
899
|
+
def initialize(_from_message: false, test_id: nil,
|
885
900
|
some_int: nil,
|
886
901
|
message_id: nil,
|
887
902
|
timestamp: nil)
|
903
|
+
@_from_message = _from_message
|
888
904
|
super
|
889
905
|
self.test_id = test_id
|
890
906
|
self.some_int = some_int
|
@@ -933,9 +949,10 @@ module Schemas; module Com; module MyNamespace
|
|
933
949
|
attr_accessor :title
|
934
950
|
|
935
951
|
# @override
|
936
|
-
def initialize(test_id: nil,
|
952
|
+
def initialize(_from_message: false, test_id: nil,
|
937
953
|
some_int: nil,
|
938
954
|
title: nil)
|
955
|
+
@_from_message = _from_message
|
939
956
|
super
|
940
957
|
self.test_id = test_id
|
941
958
|
self.some_int = some_int
|
@@ -984,8 +1001,9 @@ module Schemas; module Com; module MyNamespace
|
|
984
1001
|
attr_accessor :record1_id
|
985
1002
|
|
986
1003
|
# @override
|
987
|
-
def initialize(record1_map: {},
|
1004
|
+
def initialize(_from_message: false, record1_map: {},
|
988
1005
|
record1_id: 0)
|
1006
|
+
@_from_message = _from_message
|
989
1007
|
super
|
990
1008
|
self.record1_map = record1_map
|
991
1009
|
self.record1_id = record1_id
|
@@ -1018,7 +1036,8 @@ module Schemas; module Com; module MyNamespace
|
|
1018
1036
|
attr_accessor :record2_id
|
1019
1037
|
|
1020
1038
|
# @override
|
1021
|
-
def initialize(record2_id: "")
|
1039
|
+
def initialize(_from_message: false, record2_id: "")
|
1040
|
+
@_from_message = _from_message
|
1022
1041
|
super
|
1023
1042
|
self.record2_id = record2_id
|
1024
1043
|
end
|
@@ -1049,7 +1068,8 @@ module Schemas; module Com; module MyNamespace
|
|
1049
1068
|
attr_accessor :record3_id
|
1050
1069
|
|
1051
1070
|
# @override
|
1052
|
-
def initialize(record3_id: 0.0)
|
1071
|
+
def initialize(_from_message: false, record3_id: 0.0)
|
1072
|
+
@_from_message = _from_message
|
1053
1073
|
super
|
1054
1074
|
self.record3_id = record3_id
|
1055
1075
|
end
|
@@ -1080,7 +1100,8 @@ module Schemas; module Com; module MyNamespace
|
|
1080
1100
|
attr_accessor :record4_id
|
1081
1101
|
|
1082
1102
|
# @override
|
1083
|
-
def initialize(record4_id: 0)
|
1103
|
+
def initialize(_from_message: false, record4_id: 0)
|
1104
|
+
@_from_message = _from_message
|
1084
1105
|
super
|
1085
1106
|
self.record4_id = record4_id
|
1086
1107
|
end
|
@@ -1136,9 +1157,10 @@ module Schemas; module Com; module MyNamespace
|
|
1136
1157
|
end
|
1137
1158
|
|
1138
1159
|
# @override
|
1139
|
-
def initialize(test_id: "",
|
1160
|
+
def initialize(_from_message: false, test_id: "",
|
1140
1161
|
test_long: nil,
|
1141
1162
|
test_union_type: nil)
|
1163
|
+
@_from_message = _from_message
|
1142
1164
|
super
|
1143
1165
|
self.test_id = test_id
|
1144
1166
|
self.test_long = test_long
|
@@ -1189,11 +1211,12 @@ module Schemas; module Com; module MyNamespace
|
|
1189
1211
|
attr_accessor :timestamp
|
1190
1212
|
|
1191
1213
|
# @override
|
1192
|
-
def initialize(id: nil,
|
1214
|
+
def initialize(_from_message: false, id: nil,
|
1193
1215
|
test_id: nil,
|
1194
1216
|
some_int: nil,
|
1195
1217
|
message_id: nil,
|
1196
1218
|
timestamp: nil)
|
1219
|
+
@_from_message = _from_message
|
1197
1220
|
super
|
1198
1221
|
self.id = id
|
1199
1222
|
self.test_id = test_id
|
@@ -1242,8 +1265,9 @@ module Schemas; module Com; module MyNamespace; module MySuborg
|
|
1242
1265
|
attr_accessor :some_int
|
1243
1266
|
|
1244
1267
|
# @override
|
1245
|
-
def initialize(test_id: nil,
|
1268
|
+
def initialize(_from_message: false, test_id: nil,
|
1246
1269
|
some_int: nil)
|
1270
|
+
@_from_message = _from_message
|
1247
1271
|
super
|
1248
1272
|
self.test_id = test_id
|
1249
1273
|
self.some_int = some_int
|
@@ -1284,7 +1308,8 @@ module Schemas; module Com; module MyNamespace; module Request
|
|
1284
1308
|
attr_accessor :request_id
|
1285
1309
|
|
1286
1310
|
# @override
|
1287
|
-
def initialize(request_id: nil)
|
1311
|
+
def initialize(_from_message: false, request_id: nil)
|
1312
|
+
@_from_message = _from_message
|
1288
1313
|
super
|
1289
1314
|
self.request_id = request_id
|
1290
1315
|
end
|
@@ -1323,7 +1348,8 @@ module Schemas; module Com; module MyNamespace; module Request
|
|
1323
1348
|
attr_accessor :request_id
|
1324
1349
|
|
1325
1350
|
# @override
|
1326
|
-
def initialize(request_id: nil)
|
1351
|
+
def initialize(_from_message: false, request_id: nil)
|
1352
|
+
@_from_message = _from_message
|
1327
1353
|
super
|
1328
1354
|
self.request_id = request_id
|
1329
1355
|
end
|
@@ -1362,7 +1388,8 @@ module Schemas; module Com; module MyNamespace; module Request
|
|
1362
1388
|
attr_accessor :update_request_id
|
1363
1389
|
|
1364
1390
|
# @override
|
1365
|
-
def initialize(update_request_id: nil)
|
1391
|
+
def initialize(_from_message: false, update_request_id: nil)
|
1392
|
+
@_from_message = _from_message
|
1366
1393
|
super
|
1367
1394
|
self.update_request_id = update_request_id
|
1368
1395
|
end
|
@@ -1401,7 +1428,8 @@ module Schemas; module Com; module MyNamespace; module Response
|
|
1401
1428
|
attr_accessor :response_id
|
1402
1429
|
|
1403
1430
|
# @override
|
1404
|
-
def initialize(response_id: nil)
|
1431
|
+
def initialize(_from_message: false, response_id: nil)
|
1432
|
+
@_from_message = _from_message
|
1405
1433
|
super
|
1406
1434
|
self.response_id = response_id
|
1407
1435
|
end
|
@@ -1440,7 +1468,8 @@ module Schemas; module Com; module MyNamespace; module Response
|
|
1440
1468
|
attr_accessor :response_id
|
1441
1469
|
|
1442
1470
|
# @override
|
1443
|
-
def initialize(response_id: nil)
|
1471
|
+
def initialize(_from_message: false, response_id: nil)
|
1472
|
+
@_from_message = _from_message
|
1444
1473
|
super
|
1445
1474
|
self.response_id = response_id
|
1446
1475
|
end
|
@@ -1479,7 +1508,8 @@ module Schemas; module Com; module MyNamespace; module Response
|
|
1479
1508
|
attr_accessor :update_response_id
|
1480
1509
|
|
1481
1510
|
# @override
|
1482
|
-
def initialize(update_response_id: nil)
|
1511
|
+
def initialize(_from_message: false, update_response_id: nil)
|
1512
|
+
@_from_message = _from_message
|
1483
1513
|
super
|
1484
1514
|
self.update_response_id = update_response_id
|
1485
1515
|
end
|
@@ -1534,7 +1564,7 @@ module Schemas; module Com; module MyNamespace
|
|
1534
1564
|
attr_accessor :created_at
|
1535
1565
|
|
1536
1566
|
# @override
|
1537
|
-
def initialize(id: nil,
|
1567
|
+
def initialize(_from_message: false, id: nil,
|
1538
1568
|
wibble_id: nil,
|
1539
1569
|
name: nil,
|
1540
1570
|
floop: nil,
|
@@ -1543,6 +1573,7 @@ module Schemas; module Com; module MyNamespace
|
|
1543
1573
|
birthday_optional: nil,
|
1544
1574
|
updated_at: nil,
|
1545
1575
|
created_at: nil)
|
1576
|
+
@_from_message = _from_message
|
1546
1577
|
super
|
1547
1578
|
self.id = id
|
1548
1579
|
self.wibble_id = wibble_id
|
@@ -1605,11 +1636,12 @@ module Schemas; module Com; module MyNamespace
|
|
1605
1636
|
attr_accessor :created_at
|
1606
1637
|
|
1607
1638
|
# @override
|
1608
|
-
def initialize(id: nil,
|
1639
|
+
def initialize(_from_message: false, id: nil,
|
1609
1640
|
widget_id: nil,
|
1610
1641
|
name: nil,
|
1611
1642
|
updated_at: nil,
|
1612
1643
|
created_at: nil)
|
1644
|
+
@_from_message = _from_message
|
1613
1645
|
super
|
1614
1646
|
self.id = id
|
1615
1647
|
self.widget_id = widget_id
|
@@ -1664,11 +1696,12 @@ module Schemas; module Com; module MyNamespace
|
|
1664
1696
|
attr_accessor :created_at
|
1665
1697
|
|
1666
1698
|
# @override
|
1667
|
-
def initialize(id: nil,
|
1699
|
+
def initialize(_from_message: false, id: nil,
|
1668
1700
|
widget_id: nil,
|
1669
1701
|
model_id: nil,
|
1670
1702
|
updated_at: nil,
|
1671
1703
|
created_at: nil)
|
1704
|
+
@_from_message = _from_message
|
1672
1705
|
super
|
1673
1706
|
self.id = id
|
1674
1707
|
self.widget_id = widget_id
|