Class: FtcEventsClient::ScoreDetailModelAlliance2019

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ScoreDetailModelAlliance2019

Initializes the object

Parameters:

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

    Model attributes in the form of hash



174
175
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
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 174

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `FtcEventsClient::ScoreDetailModelAlliance2019` 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::ScoreDetailModelAlliance2019`. 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?(:'alliance')
    self.alliance = attributes[:'alliance']
  end

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

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

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

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

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

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

  if attributes.key?(:'auto_stones')
    if (value = attributes[:'auto_stones']).is_a?(Array)
      self.auto_stones = value
    end
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#allianceObject

Returns the value of attribute alliance.



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

def alliance
  @alliance
end

#auto_deliveredObject

Returns the value of attribute auto_delivered.



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

def auto_delivered
  @auto_delivered
end

#auto_delivery_pointsObject

Returns the value of attribute auto_delivery_points.



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

def auto_delivery_points
  @auto_delivery_points
end

#auto_placedObject

Returns the value of attribute auto_placed.



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

def auto_placed
  @auto_placed
end

#auto_placed_pointsObject

Returns the value of attribute auto_placed_points.



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

def auto_placed_points
  @auto_placed_points
end

#auto_returnedObject

Returns the value of attribute auto_returned.



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

def auto_returned
  @auto_returned
end

#auto_stonesObject

Returns the value of attribute auto_stones.



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

def auto_stones
  @auto_stones
end

#autonomous_pointsObject

Returns the value of attribute autonomous_points.



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

def autonomous_points
  @autonomous_points
end

#capstone_pointsObject

Returns the value of attribute capstone_points.



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

def capstone_points
  @capstone_points
end

#driver_controlled_deliveredObject

Returns the value of attribute driver_controlled_delivered.



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

def driver_controlled_delivered
  @driver_controlled_delivered
end

#driver_controlled_delivery_pointsObject

Returns the value of attribute driver_controlled_delivery_points.



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

def driver_controlled_delivery_points
  @driver_controlled_delivery_points
end

#driver_controlled_placedObject

Returns the value of attribute driver_controlled_placed.



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

def driver_controlled_placed
  @driver_controlled_placed
end

#driver_controlled_placed_pointsObject

Returns the value of attribute driver_controlled_placed_points.



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

def driver_controlled_placed_points
  @driver_controlled_placed_points
end

#driver_controlled_pointsObject

Returns the value of attribute driver_controlled_points.



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

def driver_controlled_points
  @driver_controlled_points
end

#driver_controlled_returnedObject

Returns the value of attribute driver_controlled_returned.



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

def driver_controlled_returned
  @driver_controlled_returned
end

#end_game_pointsObject

Returns the value of attribute end_game_points.



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

def end_game_points
  @end_game_points
end

#first_returned_is_skystoneObject

Returns the value of attribute first_returned_is_skystone.



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

def first_returned_is_skystone
  @first_returned_is_skystone
end

#foundation_movedObject

Returns the value of attribute foundation_moved.



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

def foundation_moved
  @foundation_moved
end

#foundation_repositionedObject

Returns the value of attribute foundation_repositioned.



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

def foundation_repositioned
  @foundation_repositioned
end

#major_penaltiesObject

Returns the value of attribute major_penalties.



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

def major_penalties
  @major_penalties
end

#minor_penaltiesObject

Returns the value of attribute minor_penalties.



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

def minor_penalties
  @minor_penalties
end

Returns the value of attribute navigation_points.



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

def navigation_points
  @navigation_points
end

#parking_pointsObject

Returns the value of attribute parking_points.



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

def parking_points
  @parking_points
end

#penalty_pointsObject

Returns the value of attribute penalty_points.



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

def penalty_points
  @penalty_points
end

#repositioned_pointsObject

Returns the value of attribute repositioned_points.



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

def repositioned_points
  @repositioned_points
end

#robot1_capstone_levelObject

Returns the value of attribute robot1_capstone_level.



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

def robot1_capstone_level
  @robot1_capstone_level
end

#robot1_navigatedObject

Returns the value of attribute robot1_navigated.



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

def robot1_navigated
  @robot1_navigated
end

#robot1_parkedObject

Returns the value of attribute robot1_parked.



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

def robot1_parked
  @robot1_parked
end

#robot2_capstone_levelObject

Returns the value of attribute robot2_capstone_level.



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

def robot2_capstone_level
  @robot2_capstone_level
end

#robot2_navigatedObject

Returns the value of attribute robot2_navigated.



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

def robot2_navigated
  @robot2_navigated
end

#robot2_parkedObject

Returns the value of attribute robot2_parked.



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

def robot2_parked
  @robot2_parked
end

#skyscraper_bonus_pointsObject

Returns the value of attribute skyscraper_bonus_points.



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

def skyscraper_bonus_points
  @skyscraper_bonus_points
end

#tallest_skyscraperObject

Returns the value of attribute tallest_skyscraper.



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

def tallest_skyscraper
  @tallest_skyscraper
end

#total_pointsObject

Returns the value of attribute total_points.



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

def total_points
  @total_points
end

Class Method Details

.attribute_mapObject

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



85
86
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
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 85

def self.attribute_map
  {
    :'alliance' => :'alliance',
    :'robot1_navigated' => :'robot1Navigated',
    :'robot1_parked' => :'robot1Parked',
    :'robot1_capstone_level' => :'robot1CapstoneLevel',
    :'robot2_navigated' => :'robot2Navigated',
    :'robot2_parked' => :'robot2Parked',
    :'robot2_capstone_level' => :'robot2CapstoneLevel',
    :'auto_stones' => :'autoStones',
    :'auto_delivered' => :'autoDelivered',
    :'auto_returned' => :'autoReturned',
    :'first_returned_is_skystone' => :'firstReturnedIsSkystone',
    :'auto_placed' => :'autoPlaced',
    :'foundation_repositioned' => :'foundationRepositioned',
    :'foundation_moved' => :'foundationMoved',
    :'driver_controlled_delivered' => :'driverControlledDelivered',
    :'driver_controlled_returned' => :'driverControlledReturned',
    :'driver_controlled_placed' => :'driverControlledPlaced',
    :'tallest_skyscraper' => :'tallestSkyscraper',
    :'auto_delivery_points' => :'autoDeliveryPoints',
    :'auto_placed_points' => :'autoPlacedPoints',
    :'autonomous_points' => :'autonomousPoints',
    :'repositioned_points' => :'repositionedPoints',
    :'navigation_points' => :'navigationPoints',
    :'driver_controlled_delivery_points' => :'driverControlledDeliveryPoints',
    :'driver_controlled_placed_points' => :'driverControlledPlacedPoints',
    :'skyscraper_bonus_points' => :'skyscraperBonusPoints',
    :'capstone_points' => :'capstonePoints',
    :'driver_controlled_points' => :'driverControlledPoints',
    :'parking_points' => :'parkingPoints',
    :'end_game_points' => :'endGamePoints',
    :'minor_penalties' => :'minorPenalties',
    :'major_penalties' => :'majorPenalties',
    :'penalty_points' => :'penaltyPoints',
    :'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



395
396
397
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 395

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

.openapi_nullableObject

List of attributes with nullable: true



165
166
167
168
169
170
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 165

def self.openapi_nullable
  Set.new([
    :'alliance',
    :'auto_stones',
  ])
end

.openapi_typesObject

Attribute type mapping.



125
126
127
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
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 125

def self.openapi_types
  {
    :'alliance' => :'Object',
    :'robot1_navigated' => :'Object',
    :'robot1_parked' => :'Object',
    :'robot1_capstone_level' => :'Object',
    :'robot2_navigated' => :'Object',
    :'robot2_parked' => :'Object',
    :'robot2_capstone_level' => :'Object',
    :'auto_stones' => :'Object',
    :'auto_delivered' => :'Object',
    :'auto_returned' => :'Object',
    :'first_returned_is_skystone' => :'Object',
    :'auto_placed' => :'Object',
    :'foundation_repositioned' => :'Object',
    :'foundation_moved' => :'Object',
    :'driver_controlled_delivered' => :'Object',
    :'driver_controlled_returned' => :'Object',
    :'driver_controlled_placed' => :'Object',
    :'tallest_skyscraper' => :'Object',
    :'auto_delivery_points' => :'Object',
    :'auto_placed_points' => :'Object',
    :'autonomous_points' => :'Object',
    :'repositioned_points' => :'Object',
    :'navigation_points' => :'Object',
    :'driver_controlled_delivery_points' => :'Object',
    :'driver_controlled_placed_points' => :'Object',
    :'skyscraper_bonus_points' => :'Object',
    :'capstone_points' => :'Object',
    :'driver_controlled_points' => :'Object',
    :'parking_points' => :'Object',
    :'end_game_points' => :'Object',
    :'minor_penalties' => :'Object',
    :'major_penalties' => :'Object',
    :'penalty_points' => :'Object',
    :'total_points' => :'Object'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



341
342
343
344
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
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 341

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      alliance == o.alliance &&
      robot1_navigated == o.robot1_navigated &&
      robot1_parked == o.robot1_parked &&
      robot1_capstone_level == o.robot1_capstone_level &&
      robot2_navigated == o.robot2_navigated &&
      robot2_parked == o.robot2_parked &&
      robot2_capstone_level == o.robot2_capstone_level &&
      auto_stones == o.auto_stones &&
      auto_delivered == o.auto_delivered &&
      auto_returned == o.auto_returned &&
      first_returned_is_skystone == o.first_returned_is_skystone &&
      auto_placed == o.auto_placed &&
      foundation_repositioned == o.foundation_repositioned &&
      foundation_moved == o.foundation_moved &&
      driver_controlled_delivered == o.driver_controlled_delivered &&
      driver_controlled_returned == o.driver_controlled_returned &&
      driver_controlled_placed == o.driver_controlled_placed &&
      tallest_skyscraper == o.tallest_skyscraper &&
      auto_delivery_points == o.auto_delivery_points &&
      auto_placed_points == o.auto_placed_points &&
      autonomous_points == o.autonomous_points &&
      repositioned_points == o.repositioned_points &&
      navigation_points == o.navigation_points &&
      driver_controlled_delivery_points == o.driver_controlled_delivery_points &&
      driver_controlled_placed_points == o.driver_controlled_placed_points &&
      skyscraper_bonus_points == o.skyscraper_bonus_points &&
      capstone_points == o.capstone_points &&
      driver_controlled_points == o.driver_controlled_points &&
      parking_points == o.parking_points &&
      end_game_points == o.end_game_points &&
      minor_penalties == o.minor_penalties &&
      major_penalties == o.major_penalties &&
      penalty_points == o.penalty_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



425
426
427
428
429
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
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 425

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



494
495
496
497
498
499
500
501
502
503
504
505
506
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 494

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



402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 402

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


382
383
384
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 382

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



388
389
390
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 388

def hash
  [alliance, robot1_navigated, robot1_parked, robot1_capstone_level, robot2_navigated, robot2_parked, robot2_capstone_level, auto_stones, auto_delivered, auto_returned, first_returned_is_skystone, auto_placed, foundation_repositioned, foundation_moved, driver_controlled_delivered, driver_controlled_returned, driver_controlled_placed, tallest_skyscraper, auto_delivery_points, auto_placed_points, autonomous_points, repositioned_points, navigation_points, driver_controlled_delivery_points, driver_controlled_placed_points, skyscraper_bonus_points, capstone_points, driver_controlled_points, parking_points, end_game_points, minor_penalties, major_penalties, penalty_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



328
329
330
331
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 328

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



470
471
472
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 470

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



476
477
478
479
480
481
482
483
484
485
486
487
488
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 476

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



464
465
466
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 464

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



335
336
337
# File 'lib/ftc_events_client/models/score_detail_model_alliance_2019.rb', line 335

def valid?
  true
end