Class: BrightData::LinkedIn::Types::DiscoveredProfile
- Inherits:
-
Data
- Object
- Data
- BrightData::LinkedIn::Types::DiscoveredProfile
- Defined in:
- lib/brightdata/linkedin/types/discovered_profile.rb
Overview
Note:
Use #raw to access fields not yet typed by this gem.
Typed representation of a discovered LinkedIn profile response.
Instance Attribute Summary collapse
-
#avatar ⇒ String?
readonly
Avatar URL.
-
#education ⇒ String, ...
readonly
Education summary.
-
#experience ⇒ String, ...
readonly
Experience summary.
-
#location ⇒ String?
readonly
Profile location.
-
#name ⇒ String?
readonly
Profile name.
-
#raw ⇒ Hash
readonly
Full parsed API response.
-
#subtitle ⇒ String?
readonly
Profile subtitle.
-
#url ⇒ String?
readonly
Profile URL.
Class Method Summary collapse
-
.from_api(hash) ⇒ BrightData::LinkedIn::Types::DiscoveredProfile
Build a discovered profile from a symbol-keyed API response.
Instance Attribute Details
#avatar ⇒ String? (readonly)
Returns avatar URL.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
#education ⇒ String, ... (readonly)
Returns education summary.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
#experience ⇒ String, ... (readonly)
Returns experience summary.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
#location ⇒ String? (readonly)
Returns profile location.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
#name ⇒ String? (readonly)
Returns profile name.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
#raw ⇒ Hash (readonly)
Returns full parsed API response.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
#subtitle ⇒ String? (readonly)
Returns profile subtitle.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
#url ⇒ String? (readonly)
Returns profile URL.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 25 DiscoveredProfile = Data.define(:url, :name, :subtitle, :location, :experience, :education, :avatar, :raw) do # Build a discovered profile from a symbol-keyed API response. # # @param hash [Hash] symbolized-key API response object # @return [BrightData::LinkedIn::Types::DiscoveredProfile] def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end end |
Class Method Details
.from_api(hash) ⇒ BrightData::LinkedIn::Types::DiscoveredProfile
Build a discovered profile from a symbol-keyed API response.
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/brightdata/linkedin/types/discovered_profile.rb', line 30 def self.from_api(hash) new( url: hash[:url], name: hash[:name], subtitle: hash[:subtitle], location: hash[:location], experience: hash[:experience], education: hash[:education], avatar: hash[:avatar], raw: hash ) end |