Class: Sportradar::Api::Football::PlayExtraPointStatistics
- Defined in:
- lib/sportradar/api/football/play_statistics.rb
Instance Attribute Summary collapse
-
#attempt ⇒ Object
Returns the value of attribute attempt.
-
#nullified ⇒ Object
Returns the value of attribute nullified.
Instance Method Summary collapse
-
#initialize(data) ⇒ PlayExtraPointStatistics
constructor
A new instance of PlayExtraPointStatistics.
- #nullified? ⇒ Boolean
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
#attempt ⇒ Object
Returns the value of attribute attempt.
150 151 152 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 150 def attempt @attempt end |
#nullified ⇒ Object
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
157 158 159 |
# File 'lib/sportradar/api/football/play_statistics.rb', line 157 def nullified? @nullified.to_s == 'true' end |