Class: LinkedIn::ApiStandardProfileRequest

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

Instance Method Summary collapse

Methods inherited from Base

from_xml, #initialize

Constructor Details

This class inherits a constructor from LinkedIn::Base

Instance Method Details

#headersObject

returning a hash should be ok, but suggestions are welcome



9
10
11
12
13
14
# File 'lib/linked_in/api_standard_profile_request.rb', line 9

def headers
  hash = {}
  hash[:name]  = @doc.xpath("//api-standard-profile-request/headers/http-header/name").text
  hash[:value] = @doc.xpath("//api-standard-profile-request/headers/http-header/value").text
  hash
end

#urlObject



4
5
6
# File 'lib/linked_in/api_standard_profile_request.rb', line 4

def url
  @doc.xpath("//api-standard-profile-request/url").text
end