lib/monday/resources/column.rb in monday_ruby-0.6.1 vs lib/monday/resources/column.rb in monday_ruby-0.6.2
- old
+ new
@@ -10,11 +10,11 @@
#
# Allows filtering columns using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID, title and description fields are retrieved.
def columns(args: {}, select: DEFAULT_SELECT)
- query = "query { boards(#{Util.format_args(args)}) { columns {#{Util.format_select(select)}}}}"
+ query = "query { boards#{Util.format_args(args)} { columns {#{Util.format_select(select)}}}}"
make_request(query)
end
# Retrieves metadata about one or a collection of columns.
@@ -35,65 +35,65 @@
#
# Allows customizing the column creation using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID, title and description fields are retrieved.
def create_column(args: {}, select: DEFAULT_SELECT)
- query = "mutation { create_column(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { create_column#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Updates the column title.
#
# Allows customizing the update using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID, title and description fields are retrieved.
def change_column_title(args: {}, select: DEFAULT_SELECT)
- query = "mutation { change_column_title(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { change_column_title#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Updates the column metadata.
#
# Allows customizing the update using the args option.
# Allows customizing the values to retrieve using the select option.
# By default, ID, title and description fields are retrieved.
def change_column_metadata(args: {}, select: DEFAULT_SELECT)
- query = "mutation { change_column_metadata(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { change_column_metadata#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Updates the value of a column for a given item.
#
# Allows customizing the update using the args option.
# Allows customizing the item values to retrieve using the select option.
# By default, ID, and name fields are retrieved.
def change_column_value(args: {}, select: %w[id name])
- query = "mutation { change_column_value(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { change_column_value#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Updates the value of a column for a given item.
#
# Allows customizing the update using the args option.
# Allows customizing the item values to retrieve using the select option.
# By default, ID, and name fields are retrieved.
def change_simple_column_value(args: {}, select: %w[id name])
- query = "mutation { change_simple_column_value(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { change_simple_column_value#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Updates the value of a column for a given item.
#
# Allows customizing the update using the args option.
# Allows customizing the item values to retrieve using the select option.
# By default, ID, and name fields are retrieved.
def change_multiple_column_value(args: {}, select: %w[id name])
- query = "mutation { change_multiple_column_values(#{Util.format_args(args)}) {#{Util.format_select(select)}}}"
+ query = "mutation { change_multiple_column_values#{Util.format_args(args)} {#{Util.format_select(select)}}}"
make_request(query)
end
# Deletes a column.