class ShareCount::Pinterest

Constants

URL

Public Instance Methods

shares!() click to toggle source
# File lib/share_count/pinterest.rb, line 5
def shares!
  response = get(URL, params: { url: checked_url })

  /count":(\d+)/.match(response.body)[-1].to_i
end