Class: DiandianOAuth::API::Interface::Submit
- Defined in:
- lib/diandian_oauth/api/interface.rb
Overview
Submissions
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#request_url(params = {}) ⇒ Object
430 431 432 433 434 435 436 437 |
# File 'lib/diandian_oauth/api/interface.rb', line 430 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 type = params[:type] raise ParamIsRequiredError.new("type is required for interface #{self.class.name}") unless type API.url_for "/blog/#{blog_cname || blog_uuid}/submission/#{type}" end |