lib/monday/resources/update.rb in monday_ruby-0.6.1 vs lib/monday/resources/update.rb in monday_ruby-0.6.2
- old
+ new
@@ -10,54 +10,54 @@
#
# Allows filtering updates using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID, body and created_at fields are retrieved.
def updates(args: {}, select: DEFAULT_SELECT)
- query = "query { updates(#{Util.format_args(args)}) { #{Util.format_select(select)}}}"
+ query = "query { updates#{Util.format_args(args)} { #{Util.format_select(select)}}}"
make_request(query)
end
# Creates a new update.
#
# Allows customizing the update creation using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID, body and created_at fields are retrieved.
def create_update(args: {}, select: DEFAULT_SELECT)
- query = "mutation { create_update(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { create_update#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Like an update.
#
# Allows customizing the update creation using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID is retrieved.
def like_update(args: {}, select: %w[id])
- query = "mutation { like_update(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { like_update#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Clear an item's update
#
# Allows customizing the update creation using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID is retrieved.
def clear_item_updates(args: {}, select: %w[id])
- query = "mutation { clear_item_updates(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { clear_item_updates#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Delete an update
#
# Allows customizing the update creation using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID is retrieved.
def delete_update(args: {}, select: %w[id])
- query = "mutation { delete_update(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { delete_update#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
end
end