class Fastlane::Argument

Represents an argument to the ActionCommand

Attributes

name[R]
value[R]
value_type[R]

Public Class Methods

new(json: nil) click to toggle source
# File fastlane/lib/fastlane/server/action_command.rb, line 4
def initialize(json: nil)
  @name = json['name']
  @value = json['value']
  @value_type = json['value_type']
end

Public Instance Methods

inspect() click to toggle source
# File fastlane/lib/fastlane/server/action_command.rb, line 14
def inspect
  if is_named
    return "named argument: #{name}, value: #{value}, type: #{value_type}"
  else
    return "unnamed argument value: #{value}, type: #{value_type}"
  end
end
is_named() click to toggle source
# File fastlane/lib/fastlane/server/action_command.rb, line 10
def is_named
  return @name.to_s.length > 0
end