Sha256: 5dc9551df14221815e1cd4aa221df6a64b6aacc1c5f19e71aab943c6eb9a8e73

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

module Cadet
  class Relationship
    attr_accessor :underlying

    def initialize(relationship)
      @underlying = relationship
    end

    def == other_rel
      @underlying.getId == other_rel.underlying.getId
    end

    def get_other_node(node)
      Node.new @underlying.getOtherNode(node.underlying)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cadet-0.0.9-java lib/cadet/relationship.rb
cadet-0.0.8-java lib/cadet/relationship.rb