Class: Servitor::ResourceConfiguration

Inherits:
Object
  • Object
show all
Includes:
HasVariables
Defined in:
lib/service/service_definition/resource_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasVariables

#var, #variables

Constructor Details

#initialize(name, options = nil) ⇒ ResourceConfiguration

Returns a new instance of ResourceConfiguration.



8
9
10
11
# File 'lib/service/service_definition/resource_configuration.rb', line 8

def initialize(name, options=nil)
  @name = name
  @options = options || {}
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/service/service_definition/resource_configuration.rb', line 6

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/service/service_definition/resource_configuration.rb', line 6

def options
  @options
end