Class: DiandianOAuth::API::Interface::RejectSubmission

Inherits:
Base
  • Object
show all
Defined in:
lib/diandian_oauth/api/interface.rb

Instance Method Summary collapse

Methods inherited from Base

#apply, param, params, verb

Instance Method Details

#request_url(params = {}) ⇒ Object



443
444
445
446
447
448
449
450
# File 'lib/diandian_oauth/api/interface.rb', line 443

def request_url params={}
  blog_cname = params[:blogCName]
  blog_uuid = params[:blogUuid]
  raise ParamIsRequiredError.new("blogCName or blogUuid is required for interface #{self.class.name}") unless blog_cname || blog_uuid
  id = params[:id]
  raise ParamIsRequiredError.new("id is required for interface #{self.class.name}") unless id
  API.url_for "/blog/#{blog_cname || blog_uuid}/submission/reject/#{id}"
end