Class: WP::API::Category

Inherits:
Resource show all
Defined in:
lib/wp/api/resources/category.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #headers

Instance Method Summary collapse

Methods inherited from Resource

#id, #initialize, #meta

Constructor Details

This class inherits a constructor from WP::API::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class WP::API::Resource

Instance Method Details

#to_paramObject



3
4
5
# File 'lib/wp/api/resources/category.rb', line 3

def to_param
  slug
end