class Sonos::TopologyNode
Attributes
coordinator[RW]
group[RW]
location[RW]
name[RW]
uuid[RW]
version[RW]
Public Class Methods
new(node)
click to toggle source
# File lib/sonos/topology_node.rb, line 5 def initialize(node) node.attributes.each do |k, v| self.send("#{k}=", v.inner_text) if self.respond_to?(k.to_sym) end self.name = node.inner_text end
Public Instance Methods
device()
click to toggle source
# File lib/sonos/topology_node.rb, line 17 def device @device ||= Device::Base.detect(ip) end
ip()
click to toggle source
# File lib/sonos/topology_node.rb, line 13 def ip @ip ||= URI.parse(location).host end