lib/j7w1/mock.rb in j7w1-0.0.7 vs lib/j7w1/mock.rb in j7w1-0.0.8
- old
+ new
@@ -7,8 +7,12 @@
end
def push(endpoint_arn, platform, options)
@push_histories.push(options.merge(device: {platform: platform, endpoint_arn: endpoint_arn}))
end
+
+ def create_device_endpoint(device_identifier, platform, options = {})
+ [device_identifier, J7W1::Util.normalize_platform(platform)].compact.join('@')
+ end
end
end
end