Sha256: f30534c7a449e1a8ad01d48c64e44753a284294db72a93b722cb0d1530b7e9c4

Contents?: true

Size: 195 Bytes

Versions: 6

Compression:

Stored size: 195 Bytes

Contents

module TomogramRouting
  class Request < Hash
    def find_responses(status:)
      self['responses'].find_all do |response|
        response['status'] == status.to_s
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tomogram_routing-0.1.5 lib/tomogram_routing/request.rb
tomogram_routing-0.1.4 lib/tomogram_routing/request.rb
tomogram_routing-0.1.3 lib/tomogram_routing/request.rb
tomogram_routing-0.1.2 lib/tomogram_routing/request.rb
tomogram_routing-0.1.1 lib/tomogram_routing/request.rb
tomogram_routing-0.1.0 lib/tomogram_routing/request.rb