Sha256: 29f657b051b1a3e884d7132c4ef53aaa8efadb0a03a0b61da503c6bf47a9e582

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

require 'savon'
require 'sonos/endpoint'

module Sonos::Device

  # Used for PLAY:3, PLAY:5, and CONNECT
  class Speaker < Base
    include Sonos::Endpoint::AVTransport
    include Sonos::Endpoint::Rendering
    include Sonos::Endpoint::Device
    include Sonos::Endpoint::ContentDirectory

    MODEL_NUMBERS = ['S3', 'S5', 'S9', 'ZP90', 'Sub']

    attr_reader :icon

    def self.model_numbers
      MODEL_NUMBERS
    end

    def speaker?
      true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sonos-0.3.3 lib/sonos/device/speaker.rb
sonos-0.3.2 lib/sonos/device/speaker.rb