Sha256: 8f0f1071bbebe8bb0b50a00f29b39dad0ac04726990a3245112aef1929d926b1

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

require 'pact_broker/ui/view_models/relationship'

module PactBroker
  module UI
    module ViewModels
      class Relationships

        attr_reader :relationships

        def initialize relationships
          @relationships = relationships.collect{ |relationship| Relationship.new(relationship) }
        end

        def each(&block)
          relationships.each(&block)
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact_broker-1.0.0 lib/pact_broker/ui/view_models/relationships.rb
pact_broker-1.0.0.alpha3 lib/pact_broker/ui/view_models/relationships.rb
pact_broker-1.0.0.alpha2 lib/pact_broker/ui/view_models/relationships.rb
pact_broker-1.0.0.alpha1 lib/pact_broker/ui/view_models/relationships.rb