Class: LinkedIn::Education::Resource
- Inherits:
-
Object
- Object
- LinkedIn::Education::Resource
- Defined in:
- lib/linked_in/education.rb
Instance Method Summary collapse
- #end_month ⇒ Object
- #end_year ⇒ Object
-
#initialize(education) ⇒ Resource
constructor
A new instance of Resource.
- #start_month ⇒ Object
- #start_year ⇒ Object
Constructor Details
#initialize(education) ⇒ Resource
Returns a new instance of Resource.
16 17 18 |
# File 'lib/linked_in/education.rb', line 16 def initialize(education) @education = education end |
Instance Method Details
#end_month ⇒ Object
34 35 36 |
# File 'lib/linked_in/education.rb', line 34 def end_month @education.xpath('./end-date/month').text.to_i end |
#end_year ⇒ Object
38 39 40 |
# File 'lib/linked_in/education.rb', line 38 def end_year @education.xpath('./end-date/year').text.to_i end |
#start_month ⇒ Object
26 27 28 |
# File 'lib/linked_in/education.rb', line 26 def start_month @education.xpath('./start-date/month').text.to_i end |
#start_year ⇒ Object
30 31 32 |
# File 'lib/linked_in/education.rb', line 30 def start_year @education.xpath('./start-date/year').text.to_i end |