Skip to content

Instantly share code, notes, and snippets.

View Y2Kot's full-sized avatar

Y2Kot Y2Kot

  • Moscow
View GitHub Profile
@Y2Kot
Y2Kot / LinkedInProfile.rb
Created January 6, 2021 21:51 — forked from brikis98/LinkedInProfile.rb
Seven Languages in Seven Weeks: Ruby, Day 3
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)