Class: Openfire::SessionsCount
- Inherits:
-
Object
- Object
- Openfire::SessionsCount
- Defined in:
- lib/openfire/sessions_count.rb
Instance Attribute Summary collapse
-
#cluster_sessions ⇒ Object
Returns the value of attribute cluster_sessions.
-
#local_sessions ⇒ Object
Returns the value of attribute local_sessions.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SessionsCount
constructor
A new instance of SessionsCount.
Constructor Details
#initialize(attributes = {}) ⇒ SessionsCount
Returns a new instance of SessionsCount.
5 6 7 8 9 |
# File 'lib/openfire/sessions_count.rb', line 5 def initialize(attributes={}) attributes.each do |k,v| self.send("#{to_underscore(k)}=", v) end end |
Instance Attribute Details
#cluster_sessions ⇒ Object
Returns the value of attribute cluster_sessions.
3 4 5 |
# File 'lib/openfire/sessions_count.rb', line 3 def cluster_sessions @cluster_sessions end |
#local_sessions ⇒ Object
Returns the value of attribute local_sessions.
3 4 5 |
# File 'lib/openfire/sessions_count.rb', line 3 def local_sessions @local_sessions end |