Class: NodeInfo::Document::Software

Inherits:
Struct
  • Object
show all
Defined in:
lib/node_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, version = nil) ⇒ Software

Returns a new instance of Software.


14
15
16
# File 'lib/node_info.rb', line 14

def initialize(name=nil, version=nil)
  super(name, version)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


13
14
15
# File 'lib/node_info.rb', line 13

def name
  @name
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version


13
14
15
# File 'lib/node_info.rb', line 13

def version
  @version
end

Instance Method Details

#version_10_hashObject


18
19
20
21
22
23
# File 'lib/node_info.rb', line 18

def version_10_hash
  {
    "name"    => name,
    "version" => version
  }
end