Class: Contentful::Exporter::Wordpress::Export
- Inherits:
-
Object
- Object
- Contentful::Exporter::Wordpress::Export
- Defined in:
- lib/wordpress/export.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
-
#wordpress_xml ⇒ Object
readonly
Returns the value of attribute wordpress_xml.
Instance Method Summary collapse
- #export_blog ⇒ Object
-
#initialize(settings) ⇒ Export
constructor
A new instance of Export.
Constructor Details
#initialize(settings) ⇒ Export
Returns a new instance of Export.
21 22 23 24 |
# File 'lib/wordpress/export.rb', line 21 def initialize(settings) @settings = settings @wordpress_xml = Nokogiri::XML(File.open(settings.wordpress_xml)) end |
Instance Attribute Details
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
19 20 21 |
# File 'lib/wordpress/export.rb', line 19 def settings @settings end |
#wordpress_xml ⇒ Object (readonly)
Returns the value of attribute wordpress_xml.
19 20 21 |
# File 'lib/wordpress/export.rb', line 19 def wordpress_xml @wordpress_xml end |
Instance Method Details
#export_blog ⇒ Object
26 27 28 |
# File 'lib/wordpress/export.rb', line 26 def export_blog Blog.new(wordpress_xml, settings).blog_extractor end |