class MingleEvents::Feed::Author

The user who’s Mingle activity triggered this event

Attributes

email[R]

The email address of the author

icon_uri[R]

The URI for the author’s icon

name[R]

The name of the author

uri[R]

The URI identifying the author as well as location of his profile data

Public Class Methods

from_snippet(author_xml) click to toggle source
   # File lib/mingle_events/feed/author.rb
23 def self.from_snippet(author_xml)
24   self.new(Xml.parse(author_xml, ATOM_AND_MINGLE_NS).select("/atom:author"))
25 end
new(author_element) click to toggle source
   # File lib/mingle_events/feed/author.rb
16 def initialize(author_element)
17   @name = author_element.inner_text("./atom:name")
18   @email = author_element.optional_inner_text("./atom:email")
19   @uri = author_element.optional_inner_text("./atom:uri")
20   @icon_uri = author_element.optional_inner_text("./mingle:icon")
21 end