Class: CbrToEpub::Output::Content::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/cbr_to_epub/output/content/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(author, title)
  @author = author || DEFAULT_AUTHOR
  @title = title || DEFAULT_TITLE
  @uuid = SecureRandom.uuid
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



10
11
12
# File 'lib/cbr_to_epub/output/content/metadata.rb', line 10

def author
  @author
end

#titleObject (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

#uuidObject (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