Module: ShopifyClient::Resource::Read::ClassMethods

Defined in:
lib/shopify-client/resource/read.rb

Instance Method Summary collapse

Instance Method Details

#default_params(params) ⇒ Object

Set the default query params. Note that ‘fields’ may be passed as an array of strings.

Examples:

default_params fields: 'id,tags'

Parameters:

  • params (Hash)


14
15
16
# File 'lib/shopify-client/resource/read.rb', line 14

def default_params(params)
  define_method(:default_params) { params }
end