Class: GDocsAPIWrapper::Models::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/gdocsapi-wrapper/models/author.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email.



26
27
28
# File 'lib/gdocsapi-wrapper/models/author.rb', line 26

def email
  @email
end

#nameObject

Returns the value of attribute name.



25
26
27
# File 'lib/gdocsapi-wrapper/models/author.rb', line 25

def name
  @name
end

Class Method Details

.parse(element) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/gdocsapi-wrapper/models/author.rb', line 28

def self.parse(element)
  author = GDocsAPIWrapper::Models::Author.new
  
  author.name = element.elements['name'].text
  author.email = element.elements['email'].text
  
  return author
end