class ModerationDelay - ModerationDelay has no descriptive comment
include ActiveModel::Model
attr_accessor :subject, :body - ModerationDelay#body is a writable attribute
- ModerationDelay#subject is a writable attribute
validates :subject, presence: true, length: { maximum: 100 }
validates :body, presence: true, length: { maximum: 2000 }
def attributes
{ "subject" => subject, "body" => body }
end
def attributes=(hash)
hash = hash.stringify_keys
hash.each do |key, value|
if respond_to?("#{key}=") - ModerationDelay#attributes= manually dispatches method call
public_send("#{key}=", value)
end
end
end
end