Class: Metasploit::Framework::DataService::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/metasploit/framework/data_service.rb

Overview

Hold metadata about a data service

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activeObject

Returns the value of attribute active


55
56
57
# File 'lib/metasploit/framework/data_service.rb', line 55

def active
  @active
end

#idObject

Returns the value of attribute id


53
54
55
# File 'lib/metasploit/framework/data_service.rb', line 53

def id
  @id
end

#is_localObject

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

#nameObject

Returns the value of attribute name


54
55
56
# File 'lib/metasploit/framework/data_service.rb', line 54

def name
  @name
end