Class: SportsDataApi::Nfl::PlayAction
- Inherits:
-
Object
- Object
- SportsDataApi::Nfl::PlayAction
- Defined in:
- lib/sports_data_api/nfl/play_action.rb
Instance Attribute Summary collapse
-
#clock ⇒ Object
readonly
Returns the value of attribute clock.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#down ⇒ Object
readonly
Returns the value of attribute down.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#play_type ⇒ Object
readonly
Returns the value of attribute play_type.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
-
#side ⇒ Object
readonly
Returns the value of attribute side.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
-
#yard_line ⇒ Object
readonly
Returns the value of attribute yard_line.
-
#yfd ⇒ Object
readonly
Returns the value of attribute yfd.
Instance Method Summary collapse
-
#initialize(quarter_hash) ⇒ PlayAction
constructor
A new instance of PlayAction.
Constructor Details
#initialize(quarter_hash) ⇒ PlayAction
Returns a new instance of 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
#clock ⇒ Object (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 |
#details ⇒ Object (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 |
#down ⇒ Object (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 |
#id ⇒ Object (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_type ⇒ Object (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 |
#sequence ⇒ Object (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 |
#side ⇒ Object (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 |
#summary ⇒ Object (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 |
#type ⇒ Object (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 |
#updated ⇒ Object (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_line ⇒ Object (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 |
#yfd ⇒ Object (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 |