Class: NeverBounce::CLI::Feature::Envars::Item
- Inherits:
-
Object
- Object
- NeverBounce::CLI::Feature::Envars::Item
- Defined in:
- lib/never_bounce/cli/feature/envars/item.rb
Overview
Single envar item container.
Instance Attribute Summary collapse
- #comment ⇒ String
-
#default ⇒ mixed
Default value.
-
#examples ⇒ Array
Value examples.
-
#is_mandatory ⇒ bool
(also: #mandatory?)
True if this envar is mandatory.
- #name ⇒ String
Instance Attribute Details
#comment ⇒ String
17 18 19 |
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 17 def comment @comment end |
#default ⇒ mixed
Default value. Default is nil
.
23 24 25 |
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 23 def default igetset(:default) { nil } end |
#examples ⇒ Array
Value examples. Default is []
.
29 30 31 |
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 29 def examples @examples ||= [] end |
#is_mandatory ⇒ bool Also known as: mandatory?
True if this envar is mandatory. Default is false
.
35 36 37 |
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 35 def is_mandatory igetset(:is_mandatory) { false } end |
#name ⇒ String
14 15 16 |
# File 'lib/never_bounce/cli/feature/envars/item.rb', line 14 def name @name end |