Class: RedmineWikiExporter::WikiURL

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine_wiki_exporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ WikiURL

Returns a new instance of WikiURL.



23
24
25
# File 'lib/redmine_wiki_exporter.rb', line 23

def initialize(url)
  @url = url
end

Instance Method Details

#urlObject



19
20
21
# File 'lib/redmine_wiki_exporter.rb', line 19

def url
  @url
end

#wikinameObject



27
28
29
# File 'lib/redmine_wiki_exporter.rb', line 27

def wikiname
  url.to_s.split('/').last
end