Sha256: b396c9b85d2bfeb91e3bb16012173d2506090aec4e0177754266b1625f344e00

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module TwilioBase
  module Fake
    class Proxy
      Proxy = Struct.new(:attributes) do
        def unique_name
          attributes[:unique_name]
        end
      end

      cattr_accessor :proxies
      self.proxies = []

      def create(attributes)
        proxy = Proxy.new(attributes)
        self.class.proxies << proxy
        proxy
      end

      def services
        self
      end

      def list
        proxies
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twilio_base-1.11.1101 spec/support/twilio_base/fake/proxy.rb
twilio_base-1.11.11 spec/support/twilio_base/fake/proxy.rb
twilio_base-1.9.0 spec/support/twilio_base/fake/proxy.rb
twilio_base-1.8.0 spec/support/twilio_base/fake/proxy.rb