Sha256: c440ede84c9f99039013413c0dbb2690553abca8e3c7f6f2c25479cbd3c25eea
Contents?: true
Size: 469 Bytes
Versions: 12
Compression:
Stored size: 469 Bytes
Contents
module LinkedIn class ApiStandardProfileRequest < LinkedIn::Base def url @doc.xpath("//api-standard-profile-request/url").text end # returning a hash should be ok, but suggestions are welcome 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 end end
Version data entries
12 entries across 12 versions & 4 rubygems