Module: Wordpress::API::Tests
- Includes:
- Utils
- Defined in:
- lib/wordpress/api/tests.rb
Instance Method Summary collapse
Instance Method Details
#get_test(id, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/wordpress/api/tests.rb', line 8 def get_test(id, = {}) , [:id, :default_string, :default_int, :boolean_whitelist_defaults_to_false, :boolean_whitelist_defaults_to_true, :string_whitelist_defaults_to_foo, :url, :datetime], :type => :test object_from_response Wordpress::Test, "/test/#{id}", :get, end |
#post_test(id, options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/wordpress/api/tests.rb', line 13 def post_test(id, = {}) , [:id, :default_string, :default_int, :boolean_whitelist_defaults_to_false, :boolean_whitelist_defaults_to_true, :string_whitelist_defaults_to_foo, :url, :datetime], :type => :test object_from_response Wordpress::Test, "/test/#{id}", :post, end |