class LinkedinOrbit::Client
Attributes
historical_import[RW]
linkedin_organization[RW]
linkedin_token[R]
orbit_api_key[RW]
orbit_workspace[RW]
Public Class Methods
new(params = {})
click to toggle source
# File lib/linkedin_orbit/client.rb, line 46 def initialize(params = {}) @orbit_api_key = params.fetch(:orbit_api_key, ENV["ORBIT_API_KEY"]) @orbit_workspace = params.fetch(:orbit_workspace, ENV["ORBIT_WORKSPACE_ID"]) @linkedin_token = token @linkedin_organization = params.fetch(:linkedin_organization, ENV["LINKEDIN_ORGANIZATION"]) @historical_import = params.fetch(:historical_import, false) end
Public Instance Methods
comments()
click to toggle source
# File lib/linkedin_orbit/client.rb, line 58 def comments LinkedinOrbit::Linkedin.new( linkedin_token: @linkedin_token, linkedin_organization: @linkedin_organization, orbit_api_key: @orbit_api_key, orbit_workspace: @orbit_workspace, historical_import: @historical_import ).process_comments end
token()
click to toggle source
# File lib/linkedin_orbit/client.rb, line 54 def token @token ||= ENV["LINKEDIN_TOKEN"] end