Class: SPNet::PortLocater
- Inherits:
-
Object
- Object
- SPNet::PortLocater
- Includes:
- Hashmake::HashMakeable
- Defined in:
- lib/spnet/storage/port_locater.rb
Overview
Locate a port based on the block and port name, rather than an object reference.
Constant Summary collapse
- ARG_SPECS =
Define arg specs to use in processing hashed arguments during #initialize.
{ :block_name => arg_spec(:reqd => true, :type => String), :port_name => arg_spec(:reqd => true, :type => String), }
Instance Attribute Summary collapse
-
#block_name ⇒ Object
readonly
Returns the value of attribute block_name.
-
#port_name ⇒ Object
readonly
Returns the value of attribute port_name.
Instance Method Summary collapse
-
#initialize(args) ⇒ PortLocater
constructor
A new instance of PortLocater.
Constructor Details
#initialize(args) ⇒ PortLocater
Returns a new instance of PortLocater.
17 18 19 |
# File 'lib/spnet/storage/port_locater.rb', line 17 def initialize args hash_make args, ARG_SPECS end |
Instance Attribute Details
#block_name ⇒ Object (readonly)
Returns the value of attribute block_name.
15 16 17 |
# File 'lib/spnet/storage/port_locater.rb', line 15 def block_name @block_name end |
#port_name ⇒ Object (readonly)
Returns the value of attribute port_name.
15 16 17 |
# File 'lib/spnet/storage/port_locater.rb', line 15 def port_name @port_name end |