Class: SportsDataApi::Nfl::PlayAction

Inherits:
Object
  • Object
show all
Defined in:
lib/sports_data_api/nfl/play_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(quarter_hash) ⇒ PlayAction



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/sports_data_api/nfl/play_action.rb', line 6

def initialize(quarter_hash)
  @sequence = quarter_hash["sequence"]
  @id = quarter_hash["id"]
  @clock = quarter_hash["clock"]
  @type = quarter_hash["type"]
  @summary = quarter_hash["summary"]
  @updated = quarter_hash["updated"]
  @side = quarter_hash["side"]
  @yard_line = quarter_hash["yard_line"]
  @play_type = quarter_hash["play_type"]
  @details = quarter_hash["details"]
  @down = quarter_hash["down"]
  @yfd = quarter_hash["yfd"]
end

Instance Attribute Details

#clockObject (readonly)

Returns the value of attribute clock.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def clock
  @clock
end

#detailsObject (readonly)

Returns the value of attribute details.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def details
  @details
end

#downObject (readonly)

Returns the value of attribute down.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def down
  @down
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def id
  @id
end

#play_typeObject (readonly)

Returns the value of attribute play_type.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def play_type
  @play_type
end

#sequenceObject (readonly)

Returns the value of attribute sequence.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def sequence
  @sequence
end

#sideObject (readonly)

Returns the value of attribute side.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def side
  @side
end

#summaryObject (readonly)

Returns the value of attribute summary.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def summary
  @summary
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def type
  @type
end

#updatedObject (readonly)

Returns the value of attribute updated.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def updated
  @updated
end

#yard_lineObject (readonly)

Returns the value of attribute yard_line.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def yard_line
  @yard_line
end

#yfdObject (readonly)

Returns the value of attribute yfd.



4
5
6
# File 'lib/sports_data_api/nfl/play_action.rb', line 4

def yfd
  @yfd
end