Class: FeedMe::Rss2PersonParser
- Inherits:
-
PersonParser
- Object
- AbstractParser
- PersonParser
- FeedMe::Rss2PersonParser
- Defined in:
- lib/feed_me/person_parser.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Attributes inherited from AbstractParser
Instance Method Summary collapse
Methods inherited from AbstractParser
has_many, has_one, #initialize, properties, property, #to_hash
Constructor Details
This class inherits a constructor from FeedMe::AbstractParser
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
12 13 14 |
# File 'lib/feed_me/person_parser.rb', line 12 def uri @uri end |
Instance Method Details
#email ⇒ Object
14 15 16 |
# File 'lib/feed_me/person_parser.rb', line 14 def email xml.text.split(/\s+/, 2)[0] if xml end |
#name ⇒ Object
18 19 20 |
# File 'lib/feed_me/person_parser.rb', line 18 def name xml.text.split(/\s+/, 2)[1].to_s[/\((.*?)\)/, 1] if xml end |