Class: FtcEventsClient::AllianceScore2020

Inherits:
Object
  • Object
show all
Defined in:
lib/ftc_events_client/models/alliance_score_2020.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AllianceScore2020

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 176

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `FtcEventsClient::AllianceScore2020` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `FtcEventsClient::AllianceScore2020`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'adjust')
    self.adjust = attributes[:'adjust']
  end

  if attributes.key?(:'dc_points')
    self.dc_points = attributes[:'dc_points']
  end

  if attributes.key?(:'auto_points')
    self.auto_points = attributes[:'auto_points']
  end

  if attributes.key?(:'dc_tower_low')
    self.dc_tower_low = attributes[:'dc_tower_low']
  end

  if attributes.key?(:'dc_tower_mid')
    self.dc_tower_mid = attributes[:'dc_tower_mid']
  end

  if attributes.key?(:'dc_tower_high')
    self.dc_tower_high = attributes[:'dc_tower_high']
  end

  if attributes.key?(:'navigated1')
    self.navigated1 = attributes[:'navigated1']
  end

  if attributes.key?(:'navigated2')
    self.navigated2 = attributes[:'navigated2']
  end

  if attributes.key?(:'wobble_delivered1')
    self.wobble_delivered1 = attributes[:'wobble_delivered1']
  end

  if attributes.key?(:'wobble_delivered2')
    self.wobble_delivered2 = attributes[:'wobble_delivered2']
  end

  if attributes.key?(:'auto_tower_low')
    self.auto_tower_low = attributes[:'auto_tower_low']
  end

  if attributes.key?(:'auto_tower_mid')
    self.auto_tower_mid = attributes[:'auto_tower_mid']
  end

  if attributes.key?(:'auto_tower_high')
    self.auto_tower_high = attributes[:'auto_tower_high']
  end

  if attributes.key?(:'auto_tower_points')
    self.auto_tower_points = attributes[:'auto_tower_points']
  end

  if attributes.key?(:'auto_power_shot_left')
    self.auto_power_shot_left = attributes[:'auto_power_shot_left']
  end

  if attributes.key?(:'auto_power_shot_center')
    self.auto_power_shot_center = attributes[:'auto_power_shot_center']
  end

  if attributes.key?(:'auto_power_shot_right')
    self.auto_power_shot_right = attributes[:'auto_power_shot_right']
  end

  if attributes.key?(:'auto_power_shot_points')
    self.auto_power_shot_points = attributes[:'auto_power_shot_points']
  end

  if attributes.key?(:'wobble_rings1')
    self.wobble_rings1 = attributes[:'wobble_rings1']
  end

  if attributes.key?(:'wobble_rings2')
    self.wobble_rings2 = attributes[:'wobble_rings2']
  end

  if attributes.key?(:'wobble_end1')
    self.wobble_end1 = attributes[:'wobble_end1']
  end

  if attributes.key?(:'wobble_end2')
    self.wobble_end2 = attributes[:'wobble_end2']
  end

  if attributes.key?(:'wobble_end_points')
    self.wobble_end_points = attributes[:'wobble_end_points']
  end

  if attributes.key?(:'wobble_ring_points')
    self.wobble_ring_points = attributes[:'wobble_ring_points']
  end

  if attributes.key?(:'auto_wobble_points')
    self.auto_wobble_points = attributes[:'auto_wobble_points']
  end

  if attributes.key?(:'end_power_shot_left')
    self.end_power_shot_left = attributes[:'end_power_shot_left']
  end

  if attributes.key?(:'end_power_shot_center')
    self.end_power_shot_center = attributes[:'end_power_shot_center']
  end

  if attributes.key?(:'end_power_shot_right')
    self.end_power_shot_right = attributes[:'end_power_shot_right']
  end

  if attributes.key?(:'end_power_shot_points')
    self.end_power_shot_points = attributes[:'end_power_shot_points']
  end

  if attributes.key?(:'penalty_points')
    self.penalty_points = attributes[:'penalty_points']
  end

  if attributes.key?(:'major_penalties')
    self.major_penalties = attributes[:'major_penalties']
  end

  if attributes.key?(:'minor_penalties')
    self.minor_penalties = attributes[:'minor_penalties']
  end

  if attributes.key?(:'navigation_points')
    self.navigation_points = attributes[:'navigation_points']
  end

  if attributes.key?(:'endgame_points')
    self.endgame_points = attributes[:'endgame_points']
  end

  if attributes.key?(:'total_points')
    self.total_points = attributes[:'total_points']
  end
end

Instance Attribute Details

#adjustObject

Returns the value of attribute adjust.



16
17
18
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 16

def adjust
  @adjust
end

#auto_pointsObject

Returns the value of attribute auto_points.



20
21
22
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 20

def auto_points
  @auto_points
end

#auto_power_shot_centerObject

Returns the value of attribute auto_power_shot_center.



46
47
48
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 46

def auto_power_shot_center
  @auto_power_shot_center
end

#auto_power_shot_leftObject

Returns the value of attribute auto_power_shot_left.



44
45
46
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 44

def auto_power_shot_left
  @auto_power_shot_left
end

#auto_power_shot_pointsObject

Returns the value of attribute auto_power_shot_points.



50
51
52
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 50

def auto_power_shot_points
  @auto_power_shot_points
end

#auto_power_shot_rightObject

Returns the value of attribute auto_power_shot_right.



48
49
50
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 48

def auto_power_shot_right
  @auto_power_shot_right
end

#auto_tower_highObject

Returns the value of attribute auto_tower_high.



40
41
42
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 40

def auto_tower_high
  @auto_tower_high
end

#auto_tower_lowObject

Returns the value of attribute auto_tower_low.



36
37
38
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 36

def auto_tower_low
  @auto_tower_low
end

#auto_tower_midObject

Returns the value of attribute auto_tower_mid.



38
39
40
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 38

def auto_tower_mid
  @auto_tower_mid
end

#auto_tower_pointsObject

Returns the value of attribute auto_tower_points.



42
43
44
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 42

def auto_tower_points
  @auto_tower_points
end

#auto_wobble_pointsObject

Returns the value of attribute auto_wobble_points.



64
65
66
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 64

def auto_wobble_points
  @auto_wobble_points
end

#dc_pointsObject

Returns the value of attribute dc_points.



18
19
20
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 18

def dc_points
  @dc_points
end

#dc_tower_highObject

Returns the value of attribute dc_tower_high.



26
27
28
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 26

def dc_tower_high
  @dc_tower_high
end

#dc_tower_lowObject

Returns the value of attribute dc_tower_low.



22
23
24
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 22

def dc_tower_low
  @dc_tower_low
end

#dc_tower_midObject

Returns the value of attribute dc_tower_mid.



24
25
26
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 24

def dc_tower_mid
  @dc_tower_mid
end

#end_power_shot_centerObject

Returns the value of attribute end_power_shot_center.



68
69
70
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 68

def end_power_shot_center
  @end_power_shot_center
end

#end_power_shot_leftObject

Returns the value of attribute end_power_shot_left.



66
67
68
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 66

def end_power_shot_left
  @end_power_shot_left
end

#end_power_shot_pointsObject

Returns the value of attribute end_power_shot_points.



72
73
74
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 72

def end_power_shot_points
  @end_power_shot_points
end

#end_power_shot_rightObject

Returns the value of attribute end_power_shot_right.



70
71
72
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 70

def end_power_shot_right
  @end_power_shot_right
end

#endgame_pointsObject

Returns the value of attribute endgame_points.



82
83
84
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 82

def endgame_points
  @endgame_points
end

#major_penaltiesObject

Returns the value of attribute major_penalties.



76
77
78
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 76

def major_penalties
  @major_penalties
end

#minor_penaltiesObject

Returns the value of attribute minor_penalties.



78
79
80
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 78

def minor_penalties
  @minor_penalties
end

Returns the value of attribute navigated1.



28
29
30
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 28

def navigated1
  @navigated1
end

Returns the value of attribute navigated2.



30
31
32
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 30

def navigated2
  @navigated2
end

Returns the value of attribute navigation_points.



80
81
82
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 80

def navigation_points
  @navigation_points
end

#penalty_pointsObject

Returns the value of attribute penalty_points.



74
75
76
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 74

def penalty_points
  @penalty_points
end

#total_pointsObject

Returns the value of attribute total_points.



84
85
86
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 84

def total_points
  @total_points
end

#wobble_delivered1Object

Returns the value of attribute wobble_delivered1.



32
33
34
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 32

def wobble_delivered1
  @wobble_delivered1
end

#wobble_delivered2Object

Returns the value of attribute wobble_delivered2.



34
35
36
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 34

def wobble_delivered2
  @wobble_delivered2
end

#wobble_end1Object

Returns the value of attribute wobble_end1.



56
57
58
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 56

def wobble_end1
  @wobble_end1
end

#wobble_end2Object

Returns the value of attribute wobble_end2.



58
59
60
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 58

def wobble_end2
  @wobble_end2
end

#wobble_end_pointsObject

Returns the value of attribute wobble_end_points.



60
61
62
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 60

def wobble_end_points
  @wobble_end_points
end

#wobble_ring_pointsObject

Returns the value of attribute wobble_ring_points.



62
63
64
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 62

def wobble_ring_points
  @wobble_ring_points
end

#wobble_rings1Object

Returns the value of attribute wobble_rings1.



52
53
54
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 52

def wobble_rings1
  @wobble_rings1
end

#wobble_rings2Object

Returns the value of attribute wobble_rings2.



54
55
56
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 54

def wobble_rings2
  @wobble_rings2
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 87

def self.attribute_map
  {
    :'adjust' => :'adjust',
    :'dc_points' => :'dcPoints',
    :'auto_points' => :'autoPoints',
    :'dc_tower_low' => :'dcTowerLow',
    :'dc_tower_mid' => :'dcTowerMid',
    :'dc_tower_high' => :'dcTowerHigh',
    :'navigated1' => :'navigated1',
    :'navigated2' => :'navigated2',
    :'wobble_delivered1' => :'wobbleDelivered1',
    :'wobble_delivered2' => :'wobbleDelivered2',
    :'auto_tower_low' => :'autoTowerLow',
    :'auto_tower_mid' => :'autoTowerMid',
    :'auto_tower_high' => :'autoTowerHigh',
    :'auto_tower_points' => :'autoTowerPoints',
    :'auto_power_shot_left' => :'autoPowerShotLeft',
    :'auto_power_shot_center' => :'autoPowerShotCenter',
    :'auto_power_shot_right' => :'autoPowerShotRight',
    :'auto_power_shot_points' => :'autoPowerShotPoints',
    :'wobble_rings1' => :'wobbleRings1',
    :'wobble_rings2' => :'wobbleRings2',
    :'wobble_end1' => :'wobbleEnd1',
    :'wobble_end2' => :'wobbleEnd2',
    :'wobble_end_points' => :'wobbleEndPoints',
    :'wobble_ring_points' => :'wobbleRingPoints',
    :'auto_wobble_points' => :'autoWobblePoints',
    :'end_power_shot_left' => :'endPowerShotLeft',
    :'end_power_shot_center' => :'endPowerShotCenter',
    :'end_power_shot_right' => :'endPowerShotRight',
    :'end_power_shot_points' => :'endPowerShotPoints',
    :'penalty_points' => :'penaltyPoints',
    :'major_penalties' => :'majorPenalties',
    :'minor_penalties' => :'minorPenalties',
    :'navigation_points' => :'navigationPoints',
    :'endgame_points' => :'endgamePoints',
    :'total_points' => :'totalPoints'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



400
401
402
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 400

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



169
170
171
172
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 169

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 128

def self.openapi_types
  {
    :'adjust' => :'Object',
    :'dc_points' => :'Object',
    :'auto_points' => :'Object',
    :'dc_tower_low' => :'Object',
    :'dc_tower_mid' => :'Object',
    :'dc_tower_high' => :'Object',
    :'navigated1' => :'Object',
    :'navigated2' => :'Object',
    :'wobble_delivered1' => :'Object',
    :'wobble_delivered2' => :'Object',
    :'auto_tower_low' => :'Object',
    :'auto_tower_mid' => :'Object',
    :'auto_tower_high' => :'Object',
    :'auto_tower_points' => :'Object',
    :'auto_power_shot_left' => :'Object',
    :'auto_power_shot_center' => :'Object',
    :'auto_power_shot_right' => :'Object',
    :'auto_power_shot_points' => :'Object',
    :'wobble_rings1' => :'Object',
    :'wobble_rings2' => :'Object',
    :'wobble_end1' => :'Object',
    :'wobble_end2' => :'Object',
    :'wobble_end_points' => :'Object',
    :'wobble_ring_points' => :'Object',
    :'auto_wobble_points' => :'Object',
    :'end_power_shot_left' => :'Object',
    :'end_power_shot_center' => :'Object',
    :'end_power_shot_right' => :'Object',
    :'end_power_shot_points' => :'Object',
    :'penalty_points' => :'Object',
    :'major_penalties' => :'Object',
    :'minor_penalties' => :'Object',
    :'navigation_points' => :'Object',
    :'endgame_points' => :'Object',
    :'total_points' => :'Object'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 345

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      adjust == o.adjust &&
      dc_points == o.dc_points &&
      auto_points == o.auto_points &&
      dc_tower_low == o.dc_tower_low &&
      dc_tower_mid == o.dc_tower_mid &&
      dc_tower_high == o.dc_tower_high &&
      navigated1 == o.navigated1 &&
      navigated2 == o.navigated2 &&
      wobble_delivered1 == o.wobble_delivered1 &&
      wobble_delivered2 == o.wobble_delivered2 &&
      auto_tower_low == o.auto_tower_low &&
      auto_tower_mid == o.auto_tower_mid &&
      auto_tower_high == o.auto_tower_high &&
      auto_tower_points == o.auto_tower_points &&
      auto_power_shot_left == o.auto_power_shot_left &&
      auto_power_shot_center == o.auto_power_shot_center &&
      auto_power_shot_right == o.auto_power_shot_right &&
      auto_power_shot_points == o.auto_power_shot_points &&
      wobble_rings1 == o.wobble_rings1 &&
      wobble_rings2 == o.wobble_rings2 &&
      wobble_end1 == o.wobble_end1 &&
      wobble_end2 == o.wobble_end2 &&
      wobble_end_points == o.wobble_end_points &&
      wobble_ring_points == o.wobble_ring_points &&
      auto_wobble_points == o.auto_wobble_points &&
      end_power_shot_left == o.end_power_shot_left &&
      end_power_shot_center == o.end_power_shot_center &&
      end_power_shot_right == o.end_power_shot_right &&
      end_power_shot_points == o.end_power_shot_points &&
      penalty_points == o.penalty_points &&
      major_penalties == o.major_penalties &&
      minor_penalties == o.minor_penalties &&
      navigation_points == o.navigation_points &&
      endgame_points == o.endgame_points &&
      total_points == o.total_points
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 430

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    FtcEventsClient.const_get(type).build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



499
500
501
502
503
504
505
506
507
508
509
510
511
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 499

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 407

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


387
388
389
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 387

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



393
394
395
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 393

def hash
  [adjust, dc_points, auto_points, dc_tower_low, dc_tower_mid, dc_tower_high, navigated1, navigated2, wobble_delivered1, wobble_delivered2, auto_tower_low, auto_tower_mid, auto_tower_high, auto_tower_points, auto_power_shot_left, auto_power_shot_center, auto_power_shot_right, auto_power_shot_points, wobble_rings1, wobble_rings2, wobble_end1, wobble_end2, wobble_end_points, wobble_ring_points, auto_wobble_points, end_power_shot_left, end_power_shot_center, end_power_shot_right, end_power_shot_points, penalty_points, major_penalties, minor_penalties, navigation_points, endgame_points, total_points].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



332
333
334
335
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 332

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



475
476
477
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 475

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 481

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



469
470
471
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 469

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



339
340
341
# File 'lib/ftc_events_client/models/alliance_score_2020.rb', line 339

def valid?
  true
end