Sha256: ee361d97303eab10ef4be5eb09f559372cf5e0b4508e415bde385127c2fbf404

Contents?: true

Size: 313 Bytes

Versions: 15

Compression:

Stored size: 313 Bytes

Contents

module ServiceContract
  AbstractProtocol = Struct.new(:name, :service) do
    def endpoints
      []
    end

    def endpoint(name)
      endpoints.detect{|endpoint| endpoint.name == name}
    end

    def types
      []
    end

    def type(name)
      types.detect{|type| type.name == name}
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
service_contract-0.6.0 lib/service_contract/abstract_protocol.rb
service_contract-0.5.1 lib/service_contract/abstract_protocol.rb
service_contract-0.5.0 lib/service_contract/abstract_protocol.rb
service_contract-0.4.1 lib/service_contract/abstract_protocol.rb
service_contract-0.4.0 lib/service_contract/abstract_protocol.rb
service_contract-0.3.0 lib/service_contract/abstract_protocol.rb
service_contract-0.2.1 lib/service_contract/abstract_protocol.rb
service_contract-0.2.0 lib/service_contract/abstract_protocol.rb
service_contract-0.1.1 lib/service_contract/abstract_protocol.rb
service_contract-0.1.0 lib/service_contract/abstract_protocol.rb
service_contract-0.0.10 lib/service_contract/abstract_protocol.rb
service_contract-0.0.8 lib/service_contract/abstract_protocol.rb
service_contract-0.0.7 lib/service_contract/abstract_protocol.rb
service_contract-0.0.6 lib/service_contract/abstract_protocol.rb
service_contract-0.0.5 lib/service_contract/abstract_protocol.rb