Module: FiveMobilePush

Extended by:
FiveMobilePush
Included in:
FiveMobilePush
Defined in:
lib/five_mobile_push.rb,
lib/five_mobile_push/tag.rb,
lib/five_mobile_push/client.rb,
lib/five_mobile_push/device.rb,
lib/five_mobile_push/message.rb,
lib/five_mobile_push/payload.rb,
lib/five_mobile_push/version.rb,
lib/five_mobile_push/notifier.rb,
lib/five_mobile_push/platform.rb

Defined Under Namespace

Classes: Client, Device, GeneralError, InvalidPlatformError, InvalidToken, Notifier, Platform, ServerError, Tag, UnauthorizedError

Constant Summary collapse

DEFAULT_ID_TYPE =
'native'
VERSION =
"0.4.7"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject



38
39
40
# File 'lib/five_mobile_push.rb', line 38

def adapter
  @adapter || Faraday.default_adapter
end

#api_tokenObject

Returns the value of attribute api_token.



22
23
24
# File 'lib/five_mobile_push.rb', line 22

def api_token
  @api_token
end

#application_uidObject

Returns the value of attribute application_uid.



22
23
24
# File 'lib/five_mobile_push.rb', line 22

def application_uid
  @application_uid
end

Instance Method Details

#configure {|config| ... } ⇒ Object

Examples:

Simple usage


FiveMobilePush.configure do |config|
  config.api_token       = '12345'
  config.application_uid = 'myfancyapp'
end

Yields:

  • (config)

    Provides a block to conveniently configure the library



34
35
36
# File 'lib/five_mobile_push.rb', line 34

def configure
  yield self
end