Class: NeverBounce::CLI::Feature::Envars::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/never_bounce/cli/feature/envars/item.rb

Overview

Single envar item container.

Instance Attribute Summary collapse

Instance Attribute Details

#commentString

Returns:

  • (String)

17
18
19
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 17

def comment
  @comment
end

#defaultmixed

Default value. Default is nil.

Returns:

  • (mixed)

23
24
25
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 23

def default
  igetset(:default) { nil }
end

#examplesArray

Value examples. Default is [].

Returns:

  • (Array)

29
30
31
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 29

def examples
  @examples ||= []
end

#is_mandatorybool Also known as: mandatory?

True if this envar is mandatory. Default is false.

Returns:

  • (bool)

35
36
37
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 35

def is_mandatory
  igetset(:is_mandatory) { false }
end

#nameString

Returns:

  • (String)

14
15
16
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 14

def name
  @name
end