Class: LinkedIn::Languages

Inherits:
Base
  • Object
show all
Defined in:
lib/linked_in/languages.rb

Defined Under Namespace

Classes: Resource

Instance Method Summary collapse

Methods inherited from Base

from_xml, #initialize

Constructor Details

This class inherits a constructor from LinkedIn::Base

Instance Method Details

#languagesObject



4
5
6
7
8
9
# File 'lib/linked_in/languages.rb', line 4

def languages
  @languages ||= @doc.children.inject([]) do |list, lang|
    list << Resource.new(lang) unless lang.blank?
    list
  end
end