Sha256: d7fadb4a55e2a1a2496959f7d8084e6c63f13a61d55dcad8132dcca24015a9b0

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

module TypedForm
  class JSONResponseHandler
    extend Forwardable
    attr_reader :json

    def_delegators :parsed_json, :questions, :responses

    def initialize(json)
      @json = json
    end

    def parsed_json
      @_parsed_json ||= JSON.parse(json, object_class: Arendelle)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typed_form-0.0.4 lib/typed_form/json_response_handler.rb
typed_form-0.0.3 lib/typed_form/json_response_handler.rb
typed_form-0.0.2 lib/typed_form/json_response_handler.rb