class Google::SafeBrowsingFullHashRequest

Public Instance Methods

set_other_attrs() click to toggle source
# 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