Sha256: 65c8516f3bb822950f54f81ef1b242053cd9da3ad94be73ba989798d88cd5373

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

module Monday
  module Resources
    # Represents Monday.com's board view resource.
    module BoardView
      DEFAULT_SELECT = %w[id name type].freeze

      # Retrieves board views from a specific board.
      #
      # Allows filtering views using the args option.
      # Allows customizing the values to retrieve using the select option.
      # By default, ID, name and type fields are retrieved.
      def board_views(args: {}, select: DEFAULT_SELECT)
        query = "query { boards(#{Util.format_args(args)}) { views {#{Util.format_select(select)}}}}"

        make_request(query)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
monday_ruby-0.6.1 lib/monday/resources/board_view.rb
monday_ruby-0.6.0 lib/monday/resources/board_view.rb
monday_ruby-0.4.0 lib/monday/resources/board_view.rb
monday_ruby-0.3.0 lib/monday/resources/board_view.rb
monday_ruby-0.2.0 lib/monday/resources/board_view.rb
monday_ruby-0.1.0 lib/monday/resources/board_view.rb