This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LinkedInProfile | |
SIMPLE_PROFILE_FIELDS = %w[id summary headline honors interests specialties industry first_name last_name public_profile_url picture_url associations] | |
SIMPLE_PROFILE_FIELDS.each do |field| | |
define_method(field.to_sym) do | |
@json[field] | |
end | |
end | |
def initialize(json) |