lib/dashx/client.rb in dashx-0.7.0 vs lib/dashx/client.rb in dashx-0.8.0

- old
+ new

@@ -96,11 +96,11 @@ self.class.headers(headers) end def deliver(urn, options) - contentTypeIdentifier, contentIdentifier = urn.split(/\//, 2) + templateSubkind, templateIdentifier = urn.split(/\//, 2) options ||= {} symbolize_keys! options @@ -112,11 +112,11 @@ options[:content][kind] ||= value if value options[:content][kind] = wrap_array(options[:content][kind]) if options[:content][kind] end params = { - contentTypeIdentifier: contentTypeIdentifier, - contentIdentifier: contentIdentifier + templateSubkind: templateSubkind, + templateIdentifier: templateIdentifier }.merge(options) make_graphql_request(CREATE_DELIVERY_REQUEST, params) end