Sha256: e01ab15d38d61278238c4fbc7da2d97353fd61136fc44de0bf03ea6192c39292

Contents?: true

Size: 252 Bytes

Versions: 18

Compression:

Stored size: 252 Bytes

Contents

module SearchFlip
  class JSON
    @default_options = {
      mode: :custom,
      use_to_json: true
    }

    def self.default_options
      @default_options
    end

    def self.generate(obj)
      Oj.dump(obj, default_options)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
search_flip-2.3.2 lib/search_flip/json.rb
search_flip-2.3.1 lib/search_flip/json.rb
search_flip-2.3.0 lib/search_flip/json.rb
search_flip-2.2.0 lib/search_flip/json.rb
search_flip-2.1.0 lib/search_flip/json.rb
search_flip-2.1.0.beta2 lib/search_flip/json.rb
search_flip-2.1.0.beta1 lib/search_flip/json.rb
search_flip-2.0.0 lib/search_flip/json.rb
search_flip-2.0.0.beta8 lib/search_flip/json.rb
search_flip-2.0.0.beta7 lib/search_flip/json.rb
search_flip-2.0.0.beta6 lib/search_flip/json.rb
search_flip-2.0.0.beta5 lib/search_flip/json.rb
search_flip-2.0.0.beta4 lib/search_flip/json.rb
search_flip-2.0.0.beta3 lib/search_flip/json.rb
search_flip-2.0.0.beta2 lib/search_flip/json.rb
search_flip-2.0.0.beta lib/search_flip/json.rb
search_flip-1.1.0 lib/search_flip/json.rb
search_flip-1.0.0 lib/search_flip/json.rb