Class: Phren::Synapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to, weight) ⇒ Synapse

Returns a new instance of Synapse.

Parameters:



11
12
13
14
15
# File 'lib/synapse.rb', line 11

def initialize(from, to, weight)
  @from = from
  @to = to
  @weight = weight
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



6
7
8
# File 'lib/synapse.rb', line 6

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



6
7
8
# File 'lib/synapse.rb', line 6

def to
  @to
end

#weightObject

Returns the value of attribute weight.



5
6
7
# File 'lib/synapse.rb', line 5

def weight
  @weight
end