Class: Coradoc::Document::Author
- Inherits:
-
Object
- Object
- Coradoc::Document::Author
- Defined in:
- lib/coradoc/document/author.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
Instance Method Summary collapse
-
#initialize(first_name, last_name, email) ⇒ Author
constructor
A new instance of Author.
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
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/coradoc/document/author.rb', line 3 def email @email end |
#first_name ⇒ Object (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_name ⇒ Object (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 |