Class: Tinychat::Room
- Inherits:
-
Object
- Object
- Tinychat::Room
- Defined in:
- lib/tinychat.rb
Instance Attribute Summary collapse
-
#broadcaster_count ⇒ Object
Returns the value of attribute broadcaster_count.
-
#name ⇒ Object
Returns the value of attribute name.
-
#names ⇒ Object
Returns the value of attribute names.
-
#pics ⇒ Object
Returns the value of attribute pics.
-
#priv ⇒ Object
Returns the value of attribute priv.
-
#topic ⇒ Object
Returns the value of attribute topic.
-
#total_count ⇒ Object
Returns the value of attribute total_count.
Instance Method Summary collapse
-
#initialize(data) ⇒ Room
constructor
A new instance of Room.
Constructor Details
#initialize(data) ⇒ Room
Returns a new instance of Room.
9 10 11 12 13 |
# File 'lib/tinychat.rb', line 9 def initialize(data) data.each do |key, value| self.send("#{key}=", value) rescue(puts "attr_reader :#{key}") end end |
Instance Attribute Details
#broadcaster_count ⇒ Object
Returns the value of attribute broadcaster_count.
8 9 10 |
# File 'lib/tinychat.rb', line 8 def broadcaster_count @broadcaster_count end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/tinychat.rb', line 8 def name @name end |
#names ⇒ Object
Returns the value of attribute names.
8 9 10 |
# File 'lib/tinychat.rb', line 8 def names @names end |
#pics ⇒ Object
Returns the value of attribute pics.
8 9 10 |
# File 'lib/tinychat.rb', line 8 def pics @pics end |
#priv ⇒ Object
Returns the value of attribute priv.
8 9 10 |
# File 'lib/tinychat.rb', line 8 def priv @priv end |
#topic ⇒ Object
Returns the value of attribute topic.
8 9 10 |
# File 'lib/tinychat.rb', line 8 def topic @topic end |
#total_count ⇒ Object
Returns the value of attribute total_count.
8 9 10 |
# File 'lib/tinychat.rb', line 8 def total_count @total_count end |