Class: FSR::App::Limit
- Inherits:
-
Application
- Object
- Application
- FSR::App::Limit
- Defined in:
- lib/fsr/app/limit.rb
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(id = nil, realm = "$${domain}", limit = 5) ⇒ Limit
constructor
A new instance of Limit.
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
#arguments ⇒ Object
11 12 13 |
# File 'lib/fsr/app/limit.rb', line 11 def arguments [@realm, @id, @limit] end |