Module: PuppetX::Relay::Agent::Model::Stateful
Instance Attribute Summary collapse
- #id ⇒ String readonly
- #state ⇒ State readonly
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ String (readonly)
13 14 15 |
# File 'lib/puppet_x/relay/agent/model/stateful.rb', line 13 def id @id end |
#state ⇒ State (readonly)
16 17 18 |
# File 'lib/puppet_x/relay/agent/model/stateful.rb', line 16 def state @state end |
Instance Method Details
#with_state(state) ⇒ self
20 21 22 23 24 |
# File 'lib/puppet_x/relay/agent/model/stateful.rb', line 20 def with_state(state) upd = dup upd.instance_variable_set(:@state, state) upd end |