Module: BatchPushNotification::Configurable
- Included in:
- BatchPushNotification
- Defined in:
- lib/batch_push_notification/configurable.rb
Overview
Use this class to configure the Client
Class Method Summary collapse
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Configure the client like this:.
Class Method Details
.keys ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/batch_push_notification/configurable.rb', line 9 def keys @keys = [ :endpoint, :api_key, :rest_api_key, :sandbox ] end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
Configure the client like this:
BatchPushNotification.configure do |config|
config.endpoint = "https://api.batch.com/1.0/"
end
30 31 32 |
# File 'lib/batch_push_notification/configurable.rb', line 30 def configure yield self end |