Slide 15
Slide 15 text
Devices
•Represent devices of any kind.
•API:
•#identifier
•#type
•Build your own:
•#to_pling_device
... are simply data containers, too
Pling::Device.new :identifier => "...",
:type => :iphone
class DeviceLikeThing
# your implementation
def to_pling_device
::Pling::Device.new(
:identifier => "...",
:type => :iphone
)
end
end