Class: Simmer::Specification::Act

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



19
20
21
# File 'lib/simmer/specification/act.rb', line 19

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params.



19
20
21
# File 'lib/simmer/specification/act.rb', line 19

def params
  @params
end

#repositoryObject (readonly)

Returns the value of attribute repository.



19
20
21
# File 'lib/simmer/specification/act.rb', line 19

def repository
  @repository
end

#typeObject (readonly)

Returns the value of attribute type.



19
20
21
# File 'lib/simmer/specification/act.rb', line 19

def type
  @type
end