Class: BrightData::LinkedIn::Types::DiscoveredProfile
- Inherits:
-
Data
- Object
- Data
- BrightData::LinkedIn::Types::DiscoveredProfile
- Defined in:
- lib/brightdata/linkedin/types/discovered_profile.rb
Overview
Use #raw to access fields not yet typed by this gem.
Typed representation of a discovered LinkedIn profile response.
Instance Attribute Summary collapse
-
#avatar ⇒ Object
readonly
Returns the value of attribute avatar.
-
#education ⇒ Object
readonly
Returns the value of attribute education.
-
#experience ⇒ Object
readonly
Returns the value of attribute experience.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#subtitle ⇒ Object
readonly
Returns the value of attribute subtitle.
-
#url ⇒ Object
readonly
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute avatar
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 ⇒ Object (readonly)
Returns the value of attribute education
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 ⇒ Object (readonly)
Returns the value of attribute experience
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 ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute raw
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 ⇒ Object (readonly)
Returns the value of attribute 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 ⇒ Object (readonly)
Returns the value of attribute 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 |