Class: CrudInspector::Files::Manager
- Inherits:
-
Object
- Object
- CrudInspector::Files::Manager
- Defined in:
- lib/crud_inspector/files/manager.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Manager
constructor
A new instance of Manager.
- #perform ⇒ Object
Constructor Details
#initialize(options) ⇒ Manager
Returns a new instance of Manager.
6 7 8 |
# File 'lib/crud_inspector/files/manager.rb', line 6 def initialize() @options = end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/crud_inspector/files/manager.rb', line 10 def perform prepare_repo writer = CrudInspector::Files::Writer.new(@options, repo) case @options[:type] when :rest writer.extend(CrudInspector::Files::MimeTypes::Json).write when :soap writer.extend(CrudInspector::Files::MimeTypes::Xml).write else 'type not supported' end end |