Class: PlaylyfeClient::V2::Event
- Inherits:
-
Object
- Object
- PlaylyfeClient::V2::Event
- Defined in:
- lib/playlyfe_client/v2/event.rb,
lib/playlyfe_client/v2/event.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#game ⇒ Object
readonly
Returns the value of attribute game.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
4 5 6 |
# File 'lib/playlyfe_client/v2/event.rb', line 4 def event @event end |
#game ⇒ Object (readonly)
Returns the value of attribute game.
4 5 6 |
# File 'lib/playlyfe_client/v2/event.rb', line 4 def game @game end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/playlyfe_client/v2/event.rb', line 4 def @timestamp end |
Class Method Details
.build(ev_hash, game, team_player_or_process = nil) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/playlyfe_client/v2/event.rb', line 33 def self.build(ev_hash, game, team_player_or_process=nil) event= PlaylyfeClient::V2::PlayerEvent::Base.build(ev_hash,game,team_player_or_process) event= PlaylyfeClient::V2::TeamEvent::Base.build(ev_hash,game,team_player_or_process) if event.nil? event= PlaylyfeClient::V2::ProcessEvent::Base.build(ev_hash,game,team_player_or_process) if event.nil? return event #could be nil! end |
Instance Method Details
#created_at ⇒ Object
6 7 8 |
# File 'lib/playlyfe_client/v2/event.rb', line 6 def created_at @timestamp end |