Class: SportsDataApi::Nfl::EventAction
- Inherits:
-
Object
- Object
- SportsDataApi::Nfl::EventAction
- Defined in:
- lib/sports_data_api/nfl/action.rb,
lib/sports_data_api/nfl/event_action.rb
Instance Attribute Summary collapse
-
#clock ⇒ Object
readonly
Returns the value of attribute clock.
-
#event_type ⇒ Object
readonly
Returns the value of attribute event_type.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
-
#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.
Instance Method Summary collapse
-
#initialize(quarter_hash) ⇒ EventAction
constructor
A new instance of EventAction.
Constructor Details
#initialize(quarter_hash) ⇒ EventAction
Returns a new instance of EventAction.
6 7 8 9 10 11 12 13 14 |
# File 'lib/sports_data_api/nfl/action.rb', line 6 def initialize(quarter_hash) @id = quarter_hash["id"] @sequence = quarter_hash["sequence"] @clock = quarter_hash["clock"] @type = quarter_hash["type"] @summary = quarter_hash["summary"] @updated = quarter_hash["updated"] @event_type = quarter_hash["event_type"] end |
Instance Attribute Details
#clock ⇒ Object (readonly)
Returns the value of attribute clock.
4 5 6 |
# File 'lib/sports_data_api/nfl/action.rb', line 4 def clock @clock end |
#event_type ⇒ Object (readonly)
Returns the value of attribute event_type.
4 5 6 |
# File 'lib/sports_data_api/nfl/action.rb', line 4 def event_type @event_type end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/sports_data_api/nfl/action.rb', line 4 def id @id end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
4 5 6 |
# File 'lib/sports_data_api/nfl/action.rb', line 4 def sequence @sequence end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
4 5 6 |
# File 'lib/sports_data_api/nfl/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/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/action.rb', line 4 def updated @updated end |