Class: Biosphere::TerraformGraph::Edge
- Inherits:
-
Object
- Object
- Biosphere::TerraformGraph::Edge
- Defined in:
- lib/biosphere/cli/terraformplanning.rb
Instance Attribute Summary collapse
-
#dst ⇒ Object
Returns the value of attribute dst.
-
#length ⇒ Object
Returns the value of attribute length.
-
#src ⇒ Object
Returns the value of attribute src.
Instance Method Summary collapse
-
#initialize(src, dst, length = 1) ⇒ Edge
constructor
A new instance of Edge.
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
#dst ⇒ Object
Returns the value of attribute dst.
12 13 14 |
# File 'lib/biosphere/cli/terraformplanning.rb', line 12 def dst @dst end |
#length ⇒ Object
Returns the value of attribute length.
12 13 14 |
# File 'lib/biosphere/cli/terraformplanning.rb', line 12 def length @length end |
#src ⇒ Object
Returns the value of attribute src.
12 13 14 |
# File 'lib/biosphere/cli/terraformplanning.rb', line 12 def src @src end |