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