Sha256: 12906182f99d80cacb8472445fcb1d13c3c7904cd200ecabac7233e35d1c7963
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
module LinkedIn class Profile < Base def connections @connections ||= client.connections(selector: { id: self.id })['values'].map { |c| Profile.new c } end def self.current(*fields) find_by( { }, *fields) end def self.find(id, *fields) find_by( { id: id }, *fields) end def self.find_by(selector, *fields) fields = fields.blank? ? LinkedIn.r_basicprofile : fields Profile.new client.profile( selector: selector, fields: fields ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
linkedin2-0.0.3 | lib/linkedin/profile.rb |
linkedin2-0.0.2 | lib/linkedin/profile.rb |