Class: NodeInfo::Document::Protocols

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocols = []) ⇒ Protocols

Returns a new instance of Protocols.


27
28
29
# File 'lib/node_info.rb', line 27

def initialize(protocols=[])
  super(protocols)
end

Instance Attribute Details

#protocolsObject

Returns the value of attribute protocols

Returns:

  • (Object)

    the current value of protocols


26
27
28
# File 'lib/node_info.rb', line 26

def protocols
  @protocols
end

Instance Method Details

#version_10_hashObject


31
32
33
34
35
36
# File 'lib/node_info.rb', line 31

def version_10_hash
  {
    "inbound"  => protocols,
    "outbound" => protocols
  }
end

#version_20_arrayObject


38
39
40
# File 'lib/node_info.rb', line 38

def version_20_array
  protocols
end