Sha256: 044f3740e9c2d98455c2d008bf76095005267cf556358d5c0d9ade5cc79e4566
Contents?: true
Size: 437 Bytes
Versions: 5
Compression:
Stored size: 437 Bytes
Contents
module Dyno class Event attr_accessor :time, :game, :game_version, :track, :competitors ## # @param [Hash] properties Event information. # def initialize(properties = {}) @time = properties.fetch( :time, Time.now ) @track = properties[:track] @game = properties[:game] @game_version = properties[:game_version] @competitors = properties.fetch( :competitors, [] ) end end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
anthonyw-dyno-0.0.3 | lib/dyno/event.rb |
anthonyw-dyno-0.1.0 | lib/dyno/event.rb |
anthonyw-dyno-0.1.1 | lib/dyno/event.rb |
antw-dyno-0.1.2 | lib/dyno/event.rb |
antw-dyno-0.1.3 | lib/dyno/event.rb |