Class: WordpressCom::AccessToken
- Inherits:
-
OAuth2::AccessToken
- Object
- OAuth2::AccessToken
- WordpressCom::AccessToken
- Defined in:
- lib/wordpress-com/access_token.rb
Instance Method Summary collapse
Instance Method Details
#request(verb, path, opts = {}, &block) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/wordpress-com/access_token.rb', line 19 def request(verb, path, opts={}, &block) full_path = "/rest/v1/" full_path << "sites/#{self['blog_id']}/" unless opts.delete('root_path') full_path << path.gsub(/^\/*/, '') super(verb, full_path, opts, &block) end |