Class: Burner::Library::Param::Base

Inherits:
JobWithRegister show all
Defined in:
lib/burner/library/param/base.rb

Overview

Common logic shared across Param job subclasses.

Direct Known Subclasses

FromRegister, ToRegister

Constant Summary

Constants inherited from JobWithRegister

JobWithRegister::BLANK

Instance Attribute Summary collapse

Attributes inherited from JobWithRegister

#register

Attributes inherited from Job

#name

Instance Method Summary collapse

Methods inherited from Job

#perform

Methods included from Util::Arrayable

#array

Constructor Details

#initialize(name: BLANK, param_key: BLANK, register: DEFAULT_REGISTER) ⇒ Base

Returns a new instance of Base.



17
18
19
20
21
22
23
# File 'lib/burner/library/param/base.rb', line 17

def initialize(name: BLANK, param_key: BLANK, register: DEFAULT_REGISTER)
  super(name: name, register: register)

  @param_key = param_key.to_s

  freeze
end

Instance Attribute Details

#param_keyObject (readonly)

Returns the value of attribute param_key.



15
16
17
# File 'lib/burner/library/param/base.rb', line 15

def param_key
  @param_key
end