Class: Mdm::Loot
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mdm::Loot
- Defined in:
- app/models/mdm/loot.rb
Overview
Constant Summary collapse
- RELATIVE_SEARCH_FIELDS =
CONSTANTS
[ 'ltype', 'name', 'info', 'data' ]
Instance Attribute Summary collapse
-
#content_type ⇒ String
The mime/content type of the file at #path.
-
#created_at ⇒ DateTime
When the loot was created.
-
#data ⇒ String
Loot data not stored in file at #path.
-
#host ⇒ Mdm::Host
The host from which the loot was gathered.
-
#info ⇒ String
Information about the loot.
-
#ltype ⇒ String
The type of loot.
-
#name ⇒ String
The name of the loot.
-
#path ⇒ String
The on-disk path to the loot file.
-
#service ⇒ Mdm::Service
The service running on the #host from which the loot was gathered.
-
#updated_at ⇒ DateTime
The last time the loot was updated.
-
#workspace ⇒ Mdm::Workspace
The workspace in which the loot is stored and the #host exists.
Instance Attribute Details
#content_type ⇒ String
The mime/content type of the file at #path. Used to server the file correctly so browsers understand whether to render or download the file.
|
|
# File 'app/models/mdm/loot.rb', line 41
|
#created_at ⇒ DateTime
When the loot was created.
|
|
# File 'app/models/mdm/loot.rb', line 47
|
#host ⇒ Mdm::Host
The host from which the loot was gathered.
23 |
# File 'app/models/mdm/loot.rb', line 23 belongs_to :host, :class_name => 'Mdm::Host' |
#info ⇒ String
Information about the loot.
|
|
# File 'app/models/mdm/loot.rb', line 62
|
#ltype ⇒ String
The type of loot
|
|
# File 'app/models/mdm/loot.rb', line 57
|
#name ⇒ String
The name of the loot.
|
|
# File 'app/models/mdm/loot.rb', line 67
|
#path ⇒ String
The on-disk path to the loot file.
|
|
# File 'app/models/mdm/loot.rb', line 72
|
#service ⇒ Mdm::Service
The service running on the #host from which the loot was gathered.
29 |
# File 'app/models/mdm/loot.rb', line 29 belongs_to :service, :class_name => 'Mdm::Service' |
#updated_at ⇒ DateTime
The last time the loot was updated.
|
|
# File 'app/models/mdm/loot.rb', line 77
|
#workspace ⇒ Mdm::Workspace
The workspace in which the loot is stored and the #host exists.
35 |
# File 'app/models/mdm/loot.rb', line 35 belongs_to :workspace, :class_name => 'Mdm::Workspace' |