Class: SportsDataApi::Nfl::EventAction

Inherits:
Object
  • Object
show all
Defined in:
lib/sports_data_api/nfl/action.rb,
lib/sports_data_api/nfl/event_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clockObject (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_typeObject (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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#sequenceObject (readonly)

Returns the value of attribute sequence.



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

def sequence
  @sequence
end

#summaryObject (readonly)

Returns the value of attribute summary.



4
5
6
# File 'lib/sports_data_api/nfl/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/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/action.rb', line 4

def updated
  @updated
end