Class: Biosphere::TerraformGraph::Edge

Inherits:
Object
  • Object
show all
Defined in:
lib/biosphere/cli/terraformplanning.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src, dst, length = 1) ⇒ Edge

Returns a new instance of Edge.



14
15
16
17
18
# File 'lib/biosphere/cli/terraformplanning.rb', line 14

def initialize(src, dst, length = 1)
    @src = src
    @dst = dst
    @length = length
end

Instance Attribute Details

#dstObject

Returns the value of attribute dst.



12
13
14
# File 'lib/biosphere/cli/terraformplanning.rb', line 12

def dst
  @dst
end

#lengthObject

Returns the value of attribute length.



12
13
14
# File 'lib/biosphere/cli/terraformplanning.rb', line 12

def length
  @length
end

#srcObject

Returns the value of attribute src.



12
13
14
# File 'lib/biosphere/cli/terraformplanning.rb', line 12

def src
  @src
end