class StreamdeckProf::Action

Attributes

config[RW]
files[RW]

Public Class Methods

new(config) click to toggle source
# File lib/streamdeck_prof/action.rb, line 9
def initialize(config)
  @config = config
  @files = FileList.new
end

Public Instance Methods

name() click to toggle source
# File lib/streamdeck_prof/action.rb, line 22
def name
  config["Name"]
end
name=(name) click to toggle source
# File lib/streamdeck_prof/action.rb, line 26
def name=(name)
  config["Name"] = name
end
save(storage_path) click to toggle source
# File lib/streamdeck_prof/action.rb, line 52
def save(storage_path)
  files.save(storage_path)
end
settings() click to toggle source
# File lib/streamdeck_prof/action.rb, line 38
def settings
  config["Settings"]
end
settings=(settings) click to toggle source
# File lib/streamdeck_prof/action.rb, line 42
def settings=(settings)
  config["Settings"] = settings
end
state() click to toggle source
# File lib/streamdeck_prof/action.rb, line 30
def state
  config["State"]
end
state=(state) click to toggle source
# File lib/streamdeck_prof/action.rb, line 34
def state=(state)
  config["State"] = state
end
to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/streamdeck_prof/action.rb, line 46
def to_hash
  config
end
Also aliased as: to_h
uuid() click to toggle source
# File lib/streamdeck_prof/action.rb, line 14
def uuid
  config["UUID"]
end
uuid=(uuid) click to toggle source
# File lib/streamdeck_prof/action.rb, line 18
def uuid=(uuid)
  config["UUID"] = uuid
end