Sha256: dcdd366e4dc74b5df3b8e5ad1741bb74df47cbd0b47204a26105d949884ef913

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

module JsonParser::ClassMethods

  def json_parse(*attr_names)
    options = {
      path: nil,
      json: :json,
      full_path: nil,
      cached: false,
      class: nil,
      compact: false,
      flatten: false,
      after: false,
      case: :lower_camel,
      type: :none
    }.merge(attr_names.extract_options!)

    builder = Builder.new(attr_names, self, options)
    builder.build
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
json_parser-1.1.0 lib/json_parser/class_methods.rb
json_parser-1.0.0 lib/json_parser/class_methods.rb