Class: AudioFeedManager::ArgumentsSpecification::Argument

Inherits:
Struct
  • Object
show all
Defined in:
lib/audio_feed_manager/cli/arguments_specification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#defaultObject

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



5
6
7
# File 'lib/audio_feed_manager/cli/arguments_specification.rb', line 5

def default
  @default
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/audio_feed_manager/cli/arguments_specification.rb', line 5

def description
  @description
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/audio_feed_manager/cli/arguments_specification.rb', line 5

def name
  @name
end

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



5
6
7
# File 'lib/audio_feed_manager/cli/arguments_specification.rb', line 5

def required
  @required
end

Instance Method Details

#optionalObject



10
11
12
# File 'lib/audio_feed_manager/cli/arguments_specification.rb', line 10

def optional
  !required
end

#usage_nameObject



6
7
8
# File 'lib/audio_feed_manager/cli/arguments_specification.rb', line 6

def usage_name
  name.upcase
end

#varargsObject



14
15
16
# File 'lib/audio_feed_manager/cli/arguments_specification.rb', line 14

def varargs
  false
end