Sha256: 29e20d9d208f6447917a9f48fa81ad7e2db70686f261b2f42727b7c98f729c20

Contents?: true

Size: 520 Bytes

Versions: 6

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EndpointRequestHeaders
      attr_reader :client,
        :result,
        :enabled,
        :add,
        :remove

      def initialize(client:, result:)
        @client = client
        @result = result
        @enabled = @result['enabled']
        @add = @result['add']
        @remove = @result['remove']
      end

      def ==(other)
        @result == other.result
      end

      def to_s
        @result.to_s
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ngrok-api-0.18.0 lib/ngrokapi/models/endpoint_request_headers.rb
ngrok-api-0.17.0 lib/ngrokapi/models/endpoint_request_headers.rb
ngrok-api-0.16.0 lib/ngrokapi/models/endpoint_request_headers.rb
ngrok-api-0.15.0 lib/ngrokapi/models/endpoint_request_headers.rb
ngrok-api-0.14.0 lib/ngrokapi/models/endpoint_request_headers.rb
ngrok-api-0.12.0 lib/ngrokapi/models/endpoint_request_headers.rb