Class: Naver::Share

Inherits:
Object
  • Object
show all
Defined in:
lib/naver/share.rb

Overview

Naver Share

Class Method Summary collapse

Class Method Details

.url(url:, title:) ⇒ Object

네이버 공유하기

Parameters:

  • url (String)

    url for the share url

  • title (String)

    title for the share url


8
9
10
11
12
# File 'lib/naver/share.rb', line 8

def url(url:, title:)
  naver_url = "http://share.naver.com/web/shareView.nhn?"
  query = URI.encode_www_form(url: url, title: title)
  "#{naver_url}#{query}"
end