lib/playlyfe_client/v2/game.rb in playlyfe_client-1.0.6 vs lib/playlyfe_client/v2/game.rb in playlyfe_client-1.1.0

- old
+ new

@@ -2,10 +2,11 @@ require_relative "./collection/player_collection.rb" require_relative "./collection/team_collection.rb" require_relative "./collection/leaderboard_collection.rb" require_relative "./collection/action_collection.rb" require_relative "./collection/metric_collection.rb" +require_relative "./collection/event_collection.rb" require_relative "../game.rb" module PlaylyfeClient module V2 @@ -45,9 +46,13 @@ end def image_data(style=:original) data=connection.get_game_image_data puts(data) + end + + def events + @events ||= PlaylyfeClient::V2::EventCollection.new(self) end private def initialize(conn)