Class: T2Server::Port

Inherits:
Object
  • Object
show all
Includes:
XML::Methods
Defined in:
lib/t2-server/port.rb

Overview

Base class of InputPort and OutputPort

Direct Known Subclasses

InputPort, OutputPort

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from XML::Methods

#get_uris_from_doc, #xml_children, #xml_document, #xml_first_child, #xml_input_fragment, #xml_keypair_cred_fragment, #xml_mkdir_fragment, #xml_node_attribute, #xml_node_content, #xml_node_name, #xml_password_cred_fragment, #xml_permissions_fragment, #xml_trust_fragment, #xml_upload_fragment, #xpath_attr, #xpath_compile, #xpath_find, #xpath_first

Constructor Details

#initialize(run, xml) ⇒ Port

:stopdoc: Create a new port.



51
52
53
54
55
# File 'lib/t2-server/port.rb', line 51

def initialize(run, xml)
  @run = run

  parse_xml(xml)
end

Instance Attribute Details

#depthObject (readonly)

The “depth” of the port. 0 = a singleton value.



47
48
49
# File 'lib/t2-server/port.rb', line 47

def depth
  @depth
end

#nameObject (readonly)

The port’s name



44
45
46
# File 'lib/t2-server/port.rb', line 44

def name
  @name
end