Class: Metasploit::Framework::DataService::Metadata
- Inherits:
-
Object
- Object
- Metasploit::Framework::DataService::Metadata
- Defined in:
- lib/metasploit/framework/data_service.rb
Overview
Hold metadata about a data service
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_local ⇒ Object
readonly
Returns the value of attribute is_local.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name, active, is_local) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(id, name, active, is_local) ⇒ Metadata
Returns a new instance of Metadata.
58 59 60 61 62 63 64 |
# File 'lib/metasploit/framework/data_service.rb', line 58 def initialize (id, name, active, is_local) self.id = id self.name = name self.active = active self.is_local = is_local end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
55 56 57 |
# File 'lib/metasploit/framework/data_service.rb', line 55 def active @active end |
#id ⇒ Object
Returns the value of attribute id.
53 54 55 |
# File 'lib/metasploit/framework/data_service.rb', line 53 def id @id end |
#is_local ⇒ Object
Returns the value of attribute is_local.
56 57 58 |
# File 'lib/metasploit/framework/data_service.rb', line 56 def is_local @is_local end |
#name ⇒ Object
Returns the value of attribute name.
54 55 56 |
# File 'lib/metasploit/framework/data_service.rb', line 54 def name @name end |