Class: Servactory::Maintenance::Attributes::OptionHelper
- Inherits:
-
Object
- Object
- Servactory::Maintenance::Attributes::OptionHelper
- Defined in:
- lib/servactory/maintenance/attributes/option_helper.rb
Instance Attribute Summary collapse
-
#equivalent ⇒ Object
readonly
Returns the value of attribute equivalent.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #dynamic_option? ⇒ Boolean
-
#initialize(name:, equivalent:, meta: {}) ⇒ OptionHelper
constructor
A new instance of OptionHelper.
Constructor Details
#initialize(name:, equivalent:, meta: {}) ⇒ OptionHelper
Returns a new instance of OptionHelper.
11 12 13 14 15 |
# File 'lib/servactory/maintenance/attributes/option_helper.rb', line 11 def initialize(name:, equivalent:, meta: {}) @name = name @equivalent = equivalent @meta = end |
Instance Attribute Details
#equivalent ⇒ Object (readonly)
Returns the value of attribute equivalent.
7 8 9 |
# File 'lib/servactory/maintenance/attributes/option_helper.rb', line 7 def equivalent @equivalent end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
7 8 9 |
# File 'lib/servactory/maintenance/attributes/option_helper.rb', line 7 def @meta end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/servactory/maintenance/attributes/option_helper.rb', line 7 def name @name end |
Instance Method Details
#dynamic_option? ⇒ Boolean
17 18 19 |
# File 'lib/servactory/maintenance/attributes/option_helper.rb', line 17 def dynamic_option? [:type] == :dynamic_option end |