Sha256: 88d83f3954f5f31f675eeaeee95cfb969428ac1bdac2513f75f71a02e70a78cd
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
#!/usr/bin/env ruby require 'drb' require 'x10' require 'x10/cm17a_device' module X10 module Cm17aRemote class Controller def initialize(uri="druby:localhost:7777") @uri = uri @remote = DRbObject.new(nil, @uri) end def command(house, unit, command, steps) @remote.command(house, unit, command, steps) end def device(house, unit) X10::Cm17a::Device.new(house, unit, self) end def self.x10_controller? true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
x10-cm17a-1.0.0 | lib/x10/cm17a_remote.rb |
x10-cm17a-1.0.1 | lib/x10/cm17a_remote.rb |