Method: Dobby::Database#update
- Defined in:
- lib/dobby/database.rb
#update ⇒ true
Returns if strategy reports it has new content.
53 54 55 56 57 58 59 60 |
# File 'lib/dobby/database.rb', line 53 def update response = @strategy.update return false unless response.changed? @records.clear @records.merge!(response.content) true end |