Class: FSR::App::Limit

Inherits:
Application show all
Defined in:
lib/fsr/app/limit.rb

Instance Method Summary collapse

Methods inherited from Application

#app_name, #raw, #sendmsg, #to_s

Constructor Details

#initialize(id = nil, realm = "$${domain}", limit = 5) ⇒ Limit

Returns a new instance of Limit.



6
7
8
9
# File 'lib/fsr/app/limit.rb', line 6

def initialize(id = nil, realm = "$${domain}", limit = 5)
  @realm, @id, @limit = realm, id, limit
  raise "Must supply a valid id" if @id.nil?
end

Instance Method Details

#argumentsObject



11
12
13
# File 'lib/fsr/app/limit.rb', line 11

def arguments
  [@realm, @id, @limit]
end