Sha256: e6fe08d14f978875f74e7dd2a8917c52fd9637354457c5da12fd356eb4a0e261

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

module Moromi::Apns::Environment
  class Builder
    class << self
      def all
        raise NotImplementedError
      end

      def build(identifier)
        all.each do |environment|
          return environment if identifier == environment.identifier
        end

        raise InvalidEnvironment.new(identifier)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
moromi-apns-0.10.0 lib/moromi/apns/environment/builder.rb
moromi-apns-0.9.0 lib/moromi/apns/environment/builder.rb
moromi-apns-0.8.0 lib/moromi/apns/environment/builder.rb
moromi-apns-0.7.0 lib/moromi/apns/environment/builder.rb
moromi-apns-0.6.0 lib/moromi/apns/environment/builder.rb
moromi-apns-0.5.0 lib/moromi/apns/environment/builder.rb