Sha256: 8fef9f7dc419f07e6e1ac0027e74b4b7ef43a9c8bb736367e8400e8254cd3bf0

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

#!/usr/bin/env ruby

require 'x10'
require 'cm17a_api'
require 'x10/cm17a_device'

module X10

  module Cm17a

    # The Controller object is the low level interface to the CM17A
    # Firecracker controller. Client software generally uses the
    # device level interface rather than the controller directly.
    class Controller

      # Create an X10::Cm17a::Device on this controller at the given
      # X10 house and unit address.
      def device(house, unit)
	X10::Cm17a::Device.new(house, unit, self)
      end

      # Yes, this class represents a X10 controller.
      def self.x10_controller?
	true
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
x10-cm17a-1.0.1-i386-mswin32 lib/x10/cm17a.rb
x10-cm17a-1.0.1 lib/x10/cm17a.rb
x10-cm17a-1.0.0 lib/x10/cm17a.rb