lib/monday/resources/board.rb in monday_ruby-0.6.1 vs lib/monday/resources/board.rb in monday_ruby-0.6.2

- old
+ new

@@ -10,42 +10,42 @@ # # Allows filtering boards using the args option. # Allows customizing the values to retrieve using the select option. # By default, ID, name and description fields are retrieved. def boards(args: {}, select: DEFAULT_SELECT) - query = "query { boards(#{Util.format_args(args)}) {#{Util.format_select(select)}}}" + query = "query { boards#{Util.format_args(args)} {#{Util.format_select(select)}}}" make_request(query) end # Creates a new boards. # # Allows customizing creating a board using the args option. # Allows customizing the values to retrieve using the select option. # By default, ID, name and description fields are retrieved. def create_board(args: {}, select: DEFAULT_SELECT) - query = "mutation { create_board(#{Util.format_args(args)}) {#{Util.format_select(select)}}}" + query = "mutation { create_board#{Util.format_args(args)} {#{Util.format_select(select)}}}" make_request(query) end # Duplicates a board. # # Allows customizing duplicating the board using the args option. # Allows customizing the values to retrieve using the select option. # By default, ID, name and description fields are retrieved. def duplicate_board(args: {}, select: DEFAULT_SELECT) - query = "mutation { duplicate_board(#{Util.format_args(args)}) { board {#{Util.format_select(select)}}}}" + query = "mutation { duplicate_board#{Util.format_args(args)} { board {#{Util.format_select(select)}}}}" make_request(query) end # Updates a board. # # Allows customizing updating the board using the args option. # Returns the ID of the updated board. def update_board(args: {}) - query = "mutation { update_board(#{Util.format_args(args)})}" + query = "mutation { update_board#{Util.format_args(args)}}" make_request(query) end # Archives a board.