Sha256: 96735c56d68e899f6f211052da8f55296403c933a55d1562b97a8ad9db0575b1

Contents?: true

Size: 314 Bytes

Versions: 12

Compression:

Stored size: 314 Bytes

Contents

class DocumentationBuilder
  def self.create(doc_hash)
    FileUtils.rm_rf("#{Rails.root}/docs")
    FileUtils.mkdir_p(Rails.root.join('docs', 'api', 'v1', 'currencies'))
    File.open(Rails.root.join('docs', 'api', 'v1', 'currencies', '1.json'), 'w') do |line|
      line.puts(doc_hash.to_json)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
apidoco-1.6.4 spec/support/documentation_builder.rb
apidoco-1.6.3 spec/support/documentation_builder.rb
apidoco-1.6.2 spec/support/documentation_builder.rb
apidoco-1.6.1 spec/support/documentation_builder.rb
apidoco-1.6.0 spec/support/documentation_builder.rb
apidoco-1.5.6 spec/support/documentation_builder.rb
apidoco-1.5.5 spec/support/documentation_builder.rb
apidoco-1.5.4 spec/support/documentation_builder.rb
apidoco-1.5.3 spec/support/documentation_builder.rb
apidoco-1.5.2 spec/support/documentation_builder.rb
apidoco-1.5.1 spec/support/documentation_builder.rb
apidoco-1.5.0 spec/support/documentation_builder.rb