Sha256: 25031c0fe1cde0b3c2dd120453ed4e3742f579ebb8144ccfffed5ec36bc80629
Contents?: true
Size: 516 Bytes
Versions: 7
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true module Monday module Resources # Represents Monday.com's account resource. module Account DEFAULT_SELECT = %w[id name].freeze # Retrieves the users account. # # Allows customizing the values to retrieve using the select option. # By default, ID and name are retrieved. def account(select: DEFAULT_SELECT) query = "query { users { account {#{Util.format_select(select)}}}}" make_request(query) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems