Sha256: 24f45a71b692444e97d3d37e5a9d08368cd319f4d93622074aa31ae4249000b8

Contents?: true

Size: 291 Bytes

Versions: 9

Compression:

Stored size: 291 Bytes

Contents

module Firetower
  class Room
    attr_reader :id, :name, :account

    def initialize(account, attributes={})
      @account = account
      @id      = attributes['id']
      @name    = attributes['name']
    end

    def to_s
      "#{account.subdomain}/#{id} (#{name})"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
firetower-0.0.9 lib/firetower/room.rb
firetower-0.0.8 lib/firetower/room.rb
firetower-0.0.7 lib/firetower/room.rb
firetower-0.0.6 lib/firetower/room.rb
firetower-0.0.5 lib/firetower/room.rb
firetower-0.0.4 lib/firetower/room.rb
firetower-0.0.3 lib/firetower/room.rb
firetower-0.0.2 lib/firetower/room.rb
firetower-0.0.1 lib/firetower/room.rb