class SocialShares::Yandex

Constants

URL

Public Instance Methods

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

  /(\d+)/.match(response)[-1].to_i
end