Class: Sportradar::Api::Football::PlayExtraPointStatistics

Inherits:
Data
  • Object
show all
Defined in:
lib/sportradar/api/football/play_statistics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Data

#all_attributes, #attributes, #create_data, #parse_into_array, #parse_into_array_with_options, #parse_out_hashes, #structure_links, #update_data

Constructor Details

#initialize(data) ⇒ PlayExtraPointStatistics

Returns a new instance of PlayExtraPointStatistics.



151
152
153
154
155
# File 'lib/sportradar/api/football/play_statistics.rb', line 151

def initialize(data)
  @response = data
  @attempt   = data['attempt']
  @nullified = data['nullified']
end

Instance Attribute Details

#attemptObject

Returns the value of attribute attempt.



150
151
152
# File 'lib/sportradar/api/football/play_statistics.rb', line 150

def attempt
  @attempt
end

#nullifiedObject

Returns the value of attribute nullified.



150
151
152
# File 'lib/sportradar/api/football/play_statistics.rb', line 150

def nullified
  @nullified
end

Instance Method Details

#nullified?Boolean

Returns:

  • (Boolean)


157
158
159
# File 'lib/sportradar/api/football/play_statistics.rb', line 157

def nullified?
  @nullified.to_s == 'true'
end