class ShareCount::Linkedin

Constants

URL

Public Instance Methods

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

  JSON.parse(response)['count']
end