Sha256: 50e819355fb0b7d7ea509bbc1d3ba2195ec499921575d348bcf72093d977f53a

Contents?: true

Size: 327 Bytes

Versions: 19

Compression:

Stored size: 327 Bytes

Contents

class Pulitzer::PostTypeVersionsController::Export

  def initialize(post_type_version)
    @post_type_version = post_type_version
  end

  def call
    json_hash = @post_type_version.as_json(
      Pulitzer::PostTypeVersion.export_config
    )
    Pulitzer::PostTypeVersion.convert_hash_to_nested(json_hash).to_json
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pulitzer-0.15.31 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.30 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.29 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.28 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.27 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.26 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.25 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.24 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.23 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.22 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.21 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.20 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.19 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.18 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.17 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.16 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.15 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.14 app/interactions/pulitzer/post_type_versions_controller/export.rb
pulitzer-0.15.13 app/interactions/pulitzer/post_type_versions_controller/export.rb