Class: Servitor::Variable
- Inherits:
-
Object
- Object
- Servitor::Variable
- Defined in:
- lib/service/service_definition/variable.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = nil) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(name, options = nil) ⇒ Variable
Returns a new instance of Variable.
6 7 8 9 |
# File 'lib/service/service_definition/variable.rb', line 6 def initialize(name, =nil) @name = name @options = || {} end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/service/service_definition/variable.rb', line 4 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/service/service_definition/variable.rb', line 4 def @options end |