Class: Simmer::Specification::Act
- Inherits:
-
Object
- Object
- Simmer::Specification::Act
- Extended by:
- Forwardable
- Defined in:
- lib/simmer/specification/act.rb,
lib/simmer/specification/act/params.rb
Overview
Describes everything necessary to execute Pdi::Spoon.
Defined Under Namespace
Classes: Params
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(repository:, name:, type:, params: {}) ⇒ Act
constructor
A new instance of Act.
Constructor Details
#initialize(repository:, name:, type:, params: {}) ⇒ Act
Returns a new instance of Act.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/simmer/specification/act.rb', line 23 def initialize(repository:, name:, type:, params: {}) assert_presence(repository, 'repository') assert_presence(name, 'name') assert_presence(type, 'type') @repository = repository.to_s @name = name.to_s @type = type.to_s @params = Params.make(params) freeze end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/simmer/specification/act.rb', line 19 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
19 20 21 |
# File 'lib/simmer/specification/act.rb', line 19 def params @params end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
19 20 21 |
# File 'lib/simmer/specification/act.rb', line 19 def repository @repository end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
19 20 21 |
# File 'lib/simmer/specification/act.rb', line 19 def type @type end |