Sha256: 9b8dae57f0adff16dd0ae5d129fd7d7e95e1631ebb8f019e6a547285b4f9e492

Contents?: true

Size: 312 Bytes

Versions: 28

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module Quby
  module Questionnaires
    module Entities
      module Questions
        class StringQuestion < Question
          def as_json(options = {})
            super.merge(autocomplete: @autocomplete, size: @size || 30)
          end
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
quby-5.6.6 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.6.5 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.6.3 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.6.2 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.6.1 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.6.0 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.5.0 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.4.0 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.3.1 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.3.0 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.2.0 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.1.3 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.1.2 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.1.1 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.1.0 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.0.5 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.0.4 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.0.3 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.0.2 lib/quby/questionnaires/entities/questions/string_question.rb
quby-5.0.1 lib/quby/questionnaires/entities/questions/string_question.rb