Class: RightScale::RunlistPolicy

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/right_agent/core_payload_types/runlist_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

included

Constructor Details

#initialize(*args) ⇒ RunlistPolicy

Initialize fields from given arguments



32
33
34
35
36
# File 'lib/right_agent/core_payload_types/runlist_policy.rb', line 32

def initialize(*args)
  @policy_name     = args[0]
  @thread_name     = args[1]
  @audit_period    = args[2]
end

Instance Attribute Details

#audit_periodObject

Returns the value of attribute audit_period.



29
30
31
# File 'lib/right_agent/core_payload_types/runlist_policy.rb', line 29

def audit_period
  @audit_period
end

#policy_nameObject

Returns the value of attribute policy_name.



29
30
31
# File 'lib/right_agent/core_payload_types/runlist_policy.rb', line 29

def policy_name
  @policy_name
end

#thread_nameObject

Returns the value of attribute thread_name.



29
30
31
# File 'lib/right_agent/core_payload_types/runlist_policy.rb', line 29

def thread_name
  @thread_name
end

Instance Method Details

#serialized_membersObject

Array of serialized fields given to constructor



39
40
41
# File 'lib/right_agent/core_payload_types/runlist_policy.rb', line 39

def serialized_members
  [ @policy_name, @thread_name, @audit_period ]
end