Class: Docker::Event::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/docker/event.rb

Overview

Represents the actor object nested within an event

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#AttributesObject Also known as: attributes

Returns the value of attribute Attributes.



7
8
9
# File 'lib/docker/event.rb', line 7

def Attributes
  @Attributes
end

#IDObject Also known as: id

Returns the value of attribute ID.



7
8
9
# File 'lib/docker/event.rb', line 7

def ID
  @ID
end