lib/zendesk_api/client.rb
# Handles resources such as 'tickets'. Any options are passed to the underlying collection, except reload which disregards
# memoization and creates a new Collection instance.
# @return [Collection] Collection instance for resource
Handles resources such as 'tickets'. Any options are passed to the underlying collection, except reload which disregards
memoization and creates a new Collection instance.
Handles resources such as ' tickets ' . Any options are passed to the underlying collection except reload which disregards memoization and creates a new Collection instance .
def method_missing(method, *args, &block)
      method = method.to_s
      options = args.last.is_a?(Hash) ? args.pop : {}
      return instance_variable_get("@#{method}") if !options.delete(:reload) && instance_variable_defined?("@#{method}")
      instance_variable_set("@#{method}", ZendeskAPI::Collection.new(self, ZendeskAPI.get_class(method.singular), options))
    end
def method_missing ( method , * args , & block ) method = method . to_s options = args . last . is_a? ( Hash ) ? args . pop : { } return instance_variable_get ( "@#{method}" ) if ! options . delete ( :reload ) && instance_variable_defined? ( "@#{method}" ) instance_variable_set ( "@#{method}" , ZendeskAPI :: Collection . new ( self , ZendeskAPI . get_class ( method . singular ) , options ) ) end
Handles resources such as 'tickets'.
Handles resources such as ' tickets ' .
Collection instance for resource
Collection instance for resource
Collection
method
<not_specific>
args
<not_specific>
block
<not_specific>