Class: Ace::Hitl::Hermes::Molecules::HermesChannels::Channel

Inherits:
Struct
  • Object
show all
Defined in:
lib/ace/hitl/hermes/molecules/hermes_channels.rb

Overview

One shared folder between lab and hermes (spec 8wm.t.vs1 §2). folder is the absolute directory path; the message address is <machine>/<name>/<id> where <name> is the channel (and folder basename) token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#folder ⇒ Object

Returns the value of attribute folder

Returns:

  • (Object) —

    the current value of folder



14
15
16
# File 'lib/ace/hitl/hermes/molecules/hermes_channels.rb', line 14

def folder
  @folder
end

#machine ⇒ Object

Returns the value of attribute machine

Returns:

  • (Object) —

    the current value of machine



14
15
16
# File 'lib/ace/hitl/hermes/molecules/hermes_channels.rb', line 14

def machine
  @machine
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



14
15
16
# File 'lib/ace/hitl/hermes/molecules/hermes_channels.rb', line 14

def name
  @name
end

Instance Method Details

#address(id) ⇒ Object



19
20
21
# File 'lib/ace/hitl/hermes/molecules/hermes_channels.rb', line 19

def address(id)
  "#{machine}/#{name}/#{id}"
end

#path ⇒ Object



15
16
17
# File 'lib/ace/hitl/hermes/molecules/hermes_channels.rb', line 15

def path
  folder
end