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.
13 14 15 |
# File 'lib/linked_in/education.rb', line 13 def initialize(education) @education = education end |
Instance Method Details
#end_month ⇒ Object
31 32 33 |
# File 'lib/linked_in/education.rb', line 31 def end_month @education.xpath('./end-date/month').text.to_i end |
#end_year ⇒ Object
35 36 37 |
# File 'lib/linked_in/education.rb', line 35 def end_year @education.xpath('./end-date/year').text.to_i end |
#start_month ⇒ Object
23 24 25 |
# File 'lib/linked_in/education.rb', line 23 def start_month @education.xpath('./start-date/month').text.to_i end |
#start_year ⇒ Object
27 28 29 |
# File 'lib/linked_in/education.rb', line 27 def start_year @education.xpath('./start-date/year').text.to_i end |