class Issola::Command::Builder
Public Instance Methods
action(&blk)
click to toggle source
# File lib/issola/command/builder.rb, line 8 def action(&blk) @action = blk end
command()
click to toggle source
# File lib/issola/command/builder.rb, line 12 def command raise ArgumentError, 'Unable to build command, missing attributes' unless valid? Command.new(key: @key, action: @action) end
key(key)
click to toggle source
# File lib/issola/command/builder.rb, line 4 def key(key) @key = key.to_s end
valid?()
click to toggle source
# File lib/issola/command/builder.rb, line 18 def valid? @key && @action end