J
Joe Van Dyk
class Player
def initialize
@player_attributes = { :some_key => "some value", :another_key =>
"another_value" }
@player_id = 2
end
end
Say there's 100 Player objects running. They're stored in an array.
DRb clients need access to the data stored in each Player. The Player
objects get updated every second with new data.
What's the best way of doing so? @player_attributes contains about
20-30 keys and values, if it matters.
Thanks,
Joe
def initialize
@player_attributes = { :some_key => "some value", :another_key =>
"another_value" }
@player_id = 2
end
end
Say there's 100 Player objects running. They're stored in an array.
DRb clients need access to the data stored in each Player. The Player
objects get updated every second with new data.
What's the best way of doing so? @player_attributes contains about
20-30 keys and values, if it matters.
Thanks,
Joe