device_cloud 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/device_cloud/configuration.rb +15 -0
- data/lib/device_cloud/version.rb +1 -1
- data/spec/version_spec.rb +1 -1
- metadata +1 -1
@@ -60,6 +60,21 @@ module DeviceCloud
|
|
60
60
|
yield self
|
61
61
|
end
|
62
62
|
|
63
|
+
def config
|
64
|
+
{
|
65
|
+
username: username,
|
66
|
+
password: password,
|
67
|
+
root_url: root_url,
|
68
|
+
alert_notification_handler: @alert_notification_handler,
|
69
|
+
empty_alert_notification_handler: @empty_alert_notification_handler,
|
70
|
+
data_notification_handler: @data_notification_handler,
|
71
|
+
empty_data_notification_handler: @empty_data_notification_handler,
|
72
|
+
event_notification_handler: @event_notification_handler,
|
73
|
+
empty_event_notification_handler: @empty_event_notification_handler,
|
74
|
+
logger: logger
|
75
|
+
}.freeze
|
76
|
+
end
|
77
|
+
|
63
78
|
# DeviceCloud url
|
64
79
|
#
|
65
80
|
# @return the DeviceCloud url or the default of 'https://my.idigi.com' if not set.
|
data/lib/device_cloud/version.rb
CHANGED
data/spec/version_spec.rb
CHANGED