Class: Contentful::Exporter::Wordpress::Author
- Defined in:
- lib/wordpress/author.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #author_extractor ⇒ Object
-
#initialize(xml, settings) ⇒ Author
constructor
A new instance of Author.
Methods inherited from Blog
#blog_extractor, #create_directory, #link_asset, #link_entry, #output_logger, #write_json_to_file
Constructor Details
#initialize(xml, settings) ⇒ Author
Returns a new instance of Author.
9 10 11 12 |
# File 'lib/wordpress/author.rb', line 9 def initialize(xml, settings) @xml = xml @settings = settings end |
Instance Attribute Details
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
7 8 9 |
# File 'lib/wordpress/author.rb', line 7 def settings @settings end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
7 8 9 |
# File 'lib/wordpress/author.rb', line 7 def xml @xml end |
Instance Method Details
#author_extractor ⇒ Object
14 15 16 17 18 |
# File 'lib/wordpress/author.rb', line 14 def output_logger.info 'Extracting authors...' create_directory("#{settings.entries_dir}/author") end |