Class: Ambition::LimitProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/ambition/lib/ambition/limit.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ LimitProcessor

Returns a new instance of LimitProcessor.



22
23
24
# File 'lib/ambition/lib/ambition/limit.rb', line 22

def initialize(*args)
  @args = args
end

Instance Method Details

#keyObject



26
27
28
# File 'lib/ambition/lib/ambition/limit.rb', line 26

def key
  :limit
end

#to_sObject



30
31
32
# File 'lib/ambition/lib/ambition/limit.rb', line 30

def to_s
  @args.compact * ', '
end