class SocialShares::Vkontakte

Constants

URL

Public Instance Methods

shares!() click to toggle source
# File lib/social_shares/vkontakte.rb, line 5
def shares!
  response = get(URL, {
    params: {
      act: 'count',
      index: 1,
      url: checked_url
    }
  })

  /VK.Share.count\(1,\s(\d+)\)/.match(response.body)[1].to_i
end