Method: Bandshell::PlayerInfo#update_if_stale
- Defined in:
- lib/bandshell/player_info.rb
#update_if_stale ⇒ Object
Returns false on failure.
25 26 27 28 29 30 31 |
# File 'lib/bandshell/player_info.rb', line 25 def update_if_stale if (@last_update < Time.now - @shelf_life) update else true end end |