module BatchPushNotification::Configurable
Use this class to configure the Client
Public Class Methods
keys()
click to toggle source
# File lib/batch_push_notification/configurable.rb, line 9 def keys @keys = [ :endpoint, :api_key, :rest_api_key, :sandbox ] end
Public Instance Methods
configure() { |self| ... }
click to toggle source
Configure the client like this:
BatchPushNotification.configure
do |config|
config.endpoint = "https://api.batch.com/1.0/"
end
# File lib/batch_push_notification/configurable.rb, line 30 def configure yield self end