Sha256: 3ceda0150a7d1321d8995b9fd0edcacd2f8763b03c08b5a214f2d51daaef1cd3

Contents?: true

Size: 548 Bytes

Versions: 10

Compression:

Stored size: 548 Bytes

Contents

require 'moromi/apns/config'
require 'moromi/apns/environment'
require 'moromi/apns/version'
require 'moromi/apns/parameter'
require 'moromi/apns/message'

module Moromi
  module Apns
    def self.configure(&block)
      yield @config ||= Config.new
    end

    def self.config
      @config
    end

    def self.environment(bundle_identifier)
      config.environment_builder_class.build(bundle_identifier)
    end

    configure do |config|
      config.environment_builder_class = ::Moromi::Apns::Environment::DefaultBuilder
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
moromi-apns-0.10.0 lib/moromi/apns.rb
moromi-apns-0.9.0 lib/moromi/apns.rb
moromi-apns-0.8.0 lib/moromi/apns.rb
moromi-apns-0.7.0 lib/moromi/apns.rb
moromi-apns-0.6.0 lib/moromi/apns.rb
moromi-apns-0.5.0 lib/moromi/apns.rb
moromi-apns-0.4.0 lib/moromi/apns.rb
moromi-apns-0.3.0 lib/moromi/apns.rb
moromi-apns-0.2.0 lib/moromi/apns.rb
moromi-apns-0.1.0 lib/moromi/apns.rb