lib/cloud_controller/rest_controller/base.rb
# Get and set the allowed query parameters (sent via the q http
# query parameter) for this rest/api endpoint.
#
# @param [Array] args One or more attributes that can be used
# as query parameters.
#
# @return [Set] If called with no arguments, returns the list
# of query parameters.
Get and set the allowed query parameters (sent via the q http
query parameter) for this rest/api endpoint.
Get and set the allowed query parameters ( sent via the q http query parameter ) for this rest / api endpoint .
def query_parameters(*args)
        if args.empty?
          @query_parameters ||= Set.new
        else
          @query_parameters ||= Set.new
          @query_parameters |= Set.new(args.map { |a| a.to_s })
        end
      end
def query_parameters ( * args ) if args . empty? @query_parameters ||= Set . new else @query_parameters ||= Set . new @query_parameters |= Set . new ( args . map { | a | a . to_s } ) end end
Get and set the allowed query parameters (sent via the q http
query parameter) for this rest/api endpoint.
Get and set the allowed query parameters ( sent via the q http query parameter ) for this rest / api endpoint .
If called with no arguments, returns the list of query parameters.
If called with no arguments returns the list of query parameters .
Set
args
<not_specific>
<not_specific>
args One or more attributes that can be used as query parameters.
args One or more attributes that can be used as query parameters .