Class: Servitor::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/service/service_definition/variable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options=nil)
  @name = name
  @options = options || {}
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/service/service_definition/variable.rb', line 4

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/service/service_definition/variable.rb', line 4

def options
  @options
end