Class: DiandianOAuth::API::Interface::PostInfo
- Defined in:
- lib/diandian_oauth/api/interface.rb
Overview
BlogAvatar
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#request_url(params = {}) ⇒ Object
191 192 193 194 195 196 |
# File 'lib/diandian_oauth/api/interface.rb', line 191 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 API.url_for "/blog/#{blog_cname || blog_uuid}/posts" end |