Sha256: 001fc96856277e913c6875dfb27b2c2b1e45f8291e157d943cdf56d3109d0aa2
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
module Fastlane # Represents a command that is meant to signal the server to do something on the client's behalf # Examples are: :cancelFastlaneRune, and :done class ControlCommand attr_reader :command attr_reader :user_message attr_reader :reason def initialize(json: nil) @command = json['command'].to_sym @user_message = json['userMessage'] @reason = json['reason'].to_sym if json['reason'] end def cancel_signal? return @command == :cancelFastlaneRun end def done_signal? return @command == :done end end end
Version data entries
3 entries across 3 versions & 1 rubygems