Method: Tinder::Room#initialize
- Defined in:
- lib/vendor/tinder/lib/tinder/room.rb
#initialize(connection, attributes = {}) ⇒ Room
Returns a new instance of Room.
6 7 8 9 10 11 |
# File 'lib/vendor/tinder/lib/tinder/room.rb', line 6 def initialize(connection, attributes = {}) @connection = connection @id = attributes['id'] @name = attributes['name'] @loaded = false end |