Class: Google::SafeBrowsingFullHashRequest
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Google::SafeBrowsingFullHashRequest
- Defined in:
- lib/rails/generators/google/model/templates/google/safe_browsing_full_hash_request.rb
Instance Method Summary collapse
Instance Method Details
#set_other_attrs ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/rails/generators/google/model/templates/google/safe_browsing_full_hash_request.rb', line 9 def set_other_attrs if !self.state.blank? && self.state != COMPLETED self.attempts ||= 0 self.attempts += 1 else self.attempts = nil end end |