Class: Mdm::Task

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/mdm/task.rb

Instance Attribute Summary collapse

Instance Attribute Details

#credsArray<Mdm::Cred>

Creds this task touched

Returns:



73
# File 'app/models/mdm/task.rb', line 73

has_many :creds, :through => :task_creds, :class_name => 'Mdm::Cred'

#hostsArray<Mdm::Host>

Hosts this task touched

Returns:



83
# File 'app/models/mdm/task.rb', line 83

has_many :hosts, :through => :task_hosts, :class_name => 'Mdm::Host'

#listenersActiveRecord::Relation<Mdm::Listener>

Listeners spawned by this task

Returns:



16
17
18
19
# File 'app/models/mdm/task.rb', line 16

has_many :listeners,
class_name: 'Mdm::Listener',
dependent: :destroy,
inverse_of: :task

#servicesArray<Mdm::Service>

Services this task touched

Returns:



93
# File 'app/models/mdm/task.rb', line 93

has_many :services, :through => :task_services, :class_name => 'Mdm::Service'

#sessionsArray<Mdm::Session>

Session this task touched

Returns:



103
# File 'app/models/mdm/task.rb', line 103

has_many :sessions, :through => :task_sessions, :class_name => 'Mdm::Session'

#task_credsActiveRecord::Relation<Mdm::TaskCred>

Joins this to #creds.

Returns:



25
26
27
28
# File 'app/models/mdm/task.rb', line 25

has_many :task_creds,
class_name: 'Mdm::TaskCred',
dependent: :destroy,
inverse_of: :task

#task_hostsActiveRecord::Relation<Mdm::TaskHost>

Joins this to #hosts.

Returns:



34
35
36
37
# File 'app/models/mdm/task.rb', line 34

has_many :task_hosts,
class_name: 'Mdm::TaskHost',
dependent: :destroy,
inverse_of: :task

#task_servicesActiveRecord::Relation<Mdm::TaskService>

Joins this to #services.

Returns:



43
44
45
46
# File 'app/models/mdm/task.rb', line 43

has_many :task_services,
class_name: 'Mdm::TaskService',
dependent: :destroy,
inverse_of: :task

#task_sessionsActiveRecord::Relation<Mdm::TaskSession>

Joins this to #sessions.

Returns:



52
53
54
55
# File 'app/models/mdm/task.rb', line 52

has_many :task_sessions,
class_name: 'Mdm::TaskSession',
dependent: :destroy,
inverse_of: :task

#workspaceMdm::Workspace

The Workspace the Task belongs to

Returns:



61
62
63
# File 'app/models/mdm/task.rb', line 61

belongs_to :workspace,
class_name: 'Mdm::Workspace',
inverse_of: :tasks