lib/playlyfe_client/v2/game.rb in playlyfe_client-1.1.1 vs lib/playlyfe_client/v2/game.rb in playlyfe_client-1.1.2
- old
+ new
@@ -69,10 +69,10 @@
@id=game_hash["id"]
@image=game_hash["image"]
@title=game_hash["title"]
@type=game_hash["type"]
@timezone=game_hash["timezone"] #TODO converion to TZInfo::Timezone ? http://www.rubydoc.info/gems/tzinfo/frames
- @created_at=Time.parse(game_hash["created"])
+ @created_at=game_hash["created"] ? Time.parse(game_hash["created"]) : nil
end
end