Class: Coradoc::Document::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/coradoc/document/author.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(first_name, last_name, email) ⇒ Author

Returns a new instance of Author.



5
6
7
8
9
# File 'lib/coradoc/document/author.rb', line 5

def initialize(first_name, last_name, email)
  @email = email
  @last_name = last_name
  @first_name = first_name
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/coradoc/document/author.rb', line 3

def email
  @email
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



3
4
5
# File 'lib/coradoc/document/author.rb', line 3

def first_name
  @first_name
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



3
4
5
# File 'lib/coradoc/document/author.rb', line 3

def last_name
  @last_name
end