Module: Marantz
- Extended by:
- Marantz
- Included in:
- Marantz
- Defined in:
- lib/marantz/client.rb,
lib/marantz/config.rb,
lib/marantz/version.rb,
lib/marantz/exceptions.rb
Defined Under Namespace
Classes: Client, Configuration, UnknownSource, UnsupportedModel, VolumeTooHigh
Constant Summary
collapse
- VOLUME_THRESHOLD =
80.0
- COMMANDS =
{
volume: 'PutMasterVolumeSet/-%s',
source: 'PutZone_InputFunction/%s',
power: 'PutZone_OnOff/%s',
mute: 'PutVolumeMute/%s'
}
- PATHS =
{
main_zone: '/MainZone/index.put.asp',
status: '/goform/formMainZone_MainZoneXml.xml'
}
- SOURCES =
{
satellite: 'SAT/CBL',
iradio: 'IRADIO',
spotify: 'SPOTIFY'
}
- SUPPORTED_MODELS =
{
9 => 'SR5008'
}
- VERSION =
'0.0.2'
Instance Method Summary
collapse
Instance Method Details
#config ⇒ Object
27
28
29
|
# File 'lib/marantz/config.rb', line 27
def config
@config
end
|
23
24
25
|
# File 'lib/marantz/config.rb', line 23
def configure(&block)
yield @config ||= Configuration.new
end
|