Class: LinkedIn::Recommendations::Recommendation
- Inherits:
-
Object
- Object
- LinkedIn::Recommendations::Recommendation
- Defined in:
- lib/linked_in/recommendations.rb
Instance Method Summary collapse
-
#initialize(recommendation) ⇒ Recommendation
constructor
A new instance of Recommendation.
- #recommender ⇒ Object
Constructor Details
#initialize(recommendation) ⇒ Recommendation
Returns a new instance of Recommendation.
13 14 15 |
# File 'lib/linked_in/recommendations.rb', line 13 def initialize(recommendation) @recommendation = recommendation end |
Instance Method Details
#recommender ⇒ Object
23 24 25 |
# File 'lib/linked_in/recommendations.rb', line 23 def recommender @recommender ||= ShortProfile.new(@recommendation.xpath('./recommender')) end |