Class: ZendeskAPI::OauthToken

Inherits:
ReadResource show all
Includes:
Destroy
Defined in:
lib/zendesk_api/resources.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from ZendeskAPI::Data

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ZendeskAPI::Data

Class Method Details

.singular_resource_nameObject



795
796
797
# File 'lib/zendesk_api/resources.rb', line 795

def self.singular_resource_name
  "token"
end

Instance Method Details

#destroy(&block) ⇒ Object Originally defined in module Destroy

Destroys, returning false on error.

#destroy!Boolean Originally defined in module Destroy

If this resource hasn't already been deleted, then do so.

Returns:

  • (Boolean)

    Successful?

#destroyed?Boolean Originally defined in module Destroy

Has this object been deleted?

Returns:

  • (Boolean)