Class: LinkedinV2::Client

Inherits:
Object
  • Object
show all
Includes:
Api::Medias, Api::Organizations, Api::Profiles, Helpers::Handler
Defined in:
lib/linkedin_v2/client.rb

Constant Summary

Constants included from Api::Profiles

Api::Profiles::PROFILE_ENTITY

Constants included from Api::Organizations

Api::Organizations::ORGANIZATION_ENTITY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Api::Medias

#upload_image

Methods included from Api::Profiles

#add_profile_post, #add_profile_share, #me

Methods included from Api::Organizations

#add_company_post, #add_company_share, #company_brand, #organizations

Methods included from Helpers::Handler

#conn, #headers, #post_headers, #request

Constructor Details

#initialize(token:) ⇒ Client

Returns a new instance of Client.



14
15
16
# File 'lib/linkedin_v2/client.rb', line 14

def initialize(token:)
  @token = token
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



12
13
14
# File 'lib/linkedin_v2/client.rb', line 12

def token
  @token
end