Sha256: c0114fb76844c29bf12a8cc3d18eaa5f082a8c1c5e33bb77168fc66a78760d30

Contents?: true

Size: 271 Bytes

Versions: 8

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module Switchbot
  class Scene
    attr_reader :client, :scene_id

    def initialize(client:, scene_id:)
      @client = client
      @scene_id = scene_id
    end

    def execute
      client.execute(scene_id: scene_id)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
switchbot-0.8.0 lib/switchbot/scene.rb
switchbot-0.7.0 lib/switchbot/scene.rb
switchbot-0.6.0 lib/switchbot/scene.rb
switchbot-0.5.1 lib/switchbot/scene.rb
switchbot-0.5.0 lib/switchbot/scene.rb
switchbot-0.4.0 lib/switchbot/scene.rb
switchbot-0.3.0 lib/switchbot/scene.rb
switchbot-0.2.0 lib/switchbot/scene.rb