Sha256: 6fe56a924d7e75d388918c168d2e5e8c3ececcfeeb22649e073878f676dcc89b

Contents?: true

Size: 730 Bytes

Versions: 2

Compression:

Stored size: 730 Bytes

Contents

require 'multi_json'
require 'five_mobile_push/client'

module FiveMobilePush
  extend self

  autoload :Device,   'five_mobile_push/device'
  autoload :Notifier, 'five_mobile_push/notifier'
  autoload :Tag,      'five_mobile_push/tag'
  autoload :Payload,  'five_mobile_push/payload'

  class UnauthorizedError < StandardError; end
  class GeneralError      < StandardError; end
  class ServerError       < StandardError; end


  VALID_OPTION_KEYS = [:api_token, :application_uid]
  SUPPORTED_PLATFORMS = %w(iphone blackberry android)

  DEFAULT_ID_TYPE = 'native'

  attr_accessor *VALID_OPTION_KEYS

  attr_writer :adapter

  def configure
    yield self
  end

  def adapter
    @adapter || Faraday.default_adapter
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
five_mobile_push-0.3.1 lib/five_mobile_push.rb
five_mobile_push-0.3.0 lib/five_mobile_push.rb