Class: CbrToEpub::Output::Content::Metadata
- Inherits:
-
Object
- Object
- CbrToEpub::Output::Content::Metadata
- Defined in:
- lib/cbr_to_epub/output/content/metadata.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(author, title) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(author, title) ⇒ Metadata
Returns a new instance of Metadata.
12 13 14 15 16 |
# File 'lib/cbr_to_epub/output/content/metadata.rb', line 12 def initialize(, title) @author = || DEFAULT_AUTHOR @title = title || DEFAULT_TITLE @uuid = SecureRandom.uuid end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
10 11 12 |
# File 'lib/cbr_to_epub/output/content/metadata.rb', line 10 def @author end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
10 11 12 |
# File 'lib/cbr_to_epub/output/content/metadata.rb', line 10 def title @title end |
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
10 11 12 |
# File 'lib/cbr_to_epub/output/content/metadata.rb', line 10 def uuid @uuid end |