class Aeternitas::PollableMetaData
Stores the meta data of all pollables Every pollable needs to have exactly one meta data object
Public Instance Methods
disable_polling(reason = nil)
click to toggle source
Disables polling of this instance
@param [String] reason Reason for the deactivation. (E.g. an error message)
# File lib/aeternitas/pollable_meta_data.rb, line 66 def disable_polling(reason = nil) self.deactivate self.deactivation_reason = reason.to_s self.deactivated_at = Time.now self.save! end