Class: LinkedIn::PhoneNumber

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

Defined Under Namespace

Classes: Resource

Instance Attribute Summary

Attributes inherited from Base

#doc

Instance Method Summary collapse

Methods inherited from Base

from_xml, #initialize

Constructor Details

This class inherits a constructor from LinkedIn::Base

Instance Method Details

#phone_numbersObject



4
5
6
7
8
9
10
11
12
# File 'lib/linked_in/phone_number.rb', line 4

def phone_numbers
  @array ||= begin
    @array = []
    @doc.children.each do |pn|
      @array << Resource.new(pn) unless pn.blank?
    end
    @array
  end
end