Class: Ebookie::Document::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/ebookie/document/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#coverObject

Returns the value of attribute cover.



14
15
16
# File 'lib/ebookie/document/config.rb', line 14

def cover
  @cover
end

#creatorObject

Returns the value of attribute creator.



6
7
8
# File 'lib/ebookie/document/config.rb', line 6

def creator
  @creator
end

#dateObject

Returns the value of attribute date.



12
13
14
# File 'lib/ebookie/document/config.rb', line 12

def date
  @date
end

#destinationObject

Returns the value of attribute destination.



13
14
15
# File 'lib/ebookie/document/config.rb', line 13

def destination
  @destination
end

#languageObject

Returns the value of attribute language.



10
11
12
# File 'lib/ebookie/document/config.rb', line 10

def language
  @language
end

#publisherObject

Returns the value of attribute publisher.



7
8
9
# File 'lib/ebookie/document/config.rb', line 7

def publisher
  @publisher
end

#rightsObject

Returns the value of attribute rights.



8
9
10
# File 'lib/ebookie/document/config.rb', line 8

def rights
  @rights
end

#sourceObject

Returns the value of attribute source.



11
12
13
# File 'lib/ebookie/document/config.rb', line 11

def source
  @source
end

#subjectObject

Returns the value of attribute subject.



9
10
11
# File 'lib/ebookie/document/config.rb', line 9

def subject
  @subject
end

#templateObject

Returns the value of attribute template.



15
16
17
# File 'lib/ebookie/document/config.rb', line 15

def template
  @template
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/ebookie/document/config.rb', line 5

def title
  @title
end

Instance Method Details

#slugObject



37
38
39
# File 'lib/ebookie/document/config.rb', line 37

def slug
  title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
end