Class: Docker::Event::Actor
- Inherits:
-
Object
- Object
- Docker::Event::Actor
- Defined in:
- lib/docker/event.rb
Overview
Represents the actor object nested within an event
Instance Attribute Summary collapse
-
#Attributes ⇒ Object
(also: #attributes)
Returns the value of attribute Attributes.
-
#ID ⇒ Object
(also: #id)
Returns the value of attribute ID.
Instance Method Summary collapse
-
#initialize(actor_attributes = {}) ⇒ Actor
constructor
A new instance of Actor.
Constructor Details
#initialize(actor_attributes = {}) ⇒ Actor
Returns a new instance of Actor.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/docker/event.rb', line 9 def initialize(actor_attributes = {}) [:ID, :Attributes].each do |sym| value = actor_attributes[sym] if value.nil? value = actor_attributes[sym.to_s] end send("#{sym}=", value) end if self.Attributes.nil? self.Attributes = {} end end |
Instance Attribute Details
#Attributes ⇒ Object Also known as: attributes
Returns the value of attribute Attributes.
7 8 9 |
# File 'lib/docker/event.rb', line 7 def Attributes @Attributes end |
#ID ⇒ Object Also known as: id
Returns the value of attribute ID.
7 8 9 |
# File 'lib/docker/event.rb', line 7 def ID @ID end |