Class: DiandianOAuth::API::Interface::EditPost
- Inherits:
-
Base
- Object
- Base
- DiandianOAuth::API::Interface::EditPost
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
297
298
299
300
301
302
303
304
|
# File 'lib/diandian_oauth/api/interface.rb', line 297
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}/post/edit"
end
|