Class: Cinch::Plugins::AntiSpam::Abuser::Current

Inherits:
Struct
  • Object
show all
Defined in:
lib/cinch/plugins/anti_spam.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count


12
13
14
# File 'lib/cinch/plugins/anti_spam.rb', line 12

def count
  @count
end

#first_offenceObject

Returns the value of attribute first_offence

Returns:

  • (Object)

    the current value of first_offence


12
13
14
# File 'lib/cinch/plugins/anti_spam.rb', line 12

def first_offence
  @first_offence
end

#last_offenceObject

Returns the value of attribute last_offence

Returns:

  • (Object)

    the current value of last_offence


12
13
14
# File 'lib/cinch/plugins/anti_spam.rb', line 12

def last_offence
  @last_offence
end

#timerObject

Returns the value of attribute timer

Returns:

  • (Object)

    the current value of timer


12
13
14
# File 'lib/cinch/plugins/anti_spam.rb', line 12

def timer
  @timer
end

Instance Method Details

#increment_count!Object


13
14
15
# File 'lib/cinch/plugins/anti_spam.rb', line 13

def increment_count!
  self.count = self.count.succ
end