Sha256: c5cec1d3cd08c2f761417b837163b9551d8b514876cd3c1fc746737e9c87d512

Contents?: true

Size: 354 Bytes

Versions: 18

Compression:

Stored size: 354 Bytes

Contents

require 'mittsu/lights/light'

module Mittsu
  class AmbientLight < Light
    def initialize(color)
      super
      @type = 'AmbientLight'
    end

    def clone
      light = AmbientLight.new
      super(light)
      light
    end

    protected

    def jsonify
      data = super
      data[:color] = self.color.get_hex
      data
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mittsu-0.5.0 lib/mittsu/lights/ambient_light.rb
mittsu-0.4.1 lib/mittsu/lights/ambient_light.rb
mittsu-0.4.0 lib/mittsu/lights/ambient_light.rb
mittsu-0.3.3 lib/mittsu/lights/ambient_light.rb
mittsu-0.3.2 lib/mittsu/lights/ambient_light.rb
mittsu-0.3.1 lib/mittsu/lights/ambient_light.rb
mittsu-0.3.0 lib/mittsu/lights/ambient_light.rb
mittsu-0.2.4 lib/mittsu/lights/ambient_light.rb
mittsu-0.2.3 lib/mittsu/lights/ambient_light.rb
mittsu-0.2.2 lib/mittsu/lights/ambient_light.rb
mittsu-0.2.1 lib/mittsu/lights/ambient_light.rb
mittsu-0.2.0 lib/mittsu/lights/ambient_light.rb
mittsu-0.1.7 lib/mittsu/lights/ambient_light.rb
mittsu-0.1.6 lib/mittsu/lights/ambient_light.rb
mittsu-0.1.5 lib/mittsu/lights/ambient_light.rb
mittsu-0.1.4 lib/mittsu/lights/ambient_light.rb
mittsu-0.1.3 lib/mittsu/lights/ambient_light.rb
mittsu-0.1.2 lib/mittsu/lights/ambient_light.rb