Sha256: eba4fda32da966fd5c4e913e6c46bfa7de38297296eccce66ed0cfea28ab3535

Contents?: true

Size: 278 Bytes

Versions: 4

Compression:

Stored size: 278 Bytes

Contents

module Prismic
  module Fragments
    class IntegrationField < Fragment
      attr_accessor :value

      def initialize(value)
        @value = value
      end

      def as_json
        value.to_json
      end

      def as_text
        value.to_s
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prismic.io-1.8.2 lib/prismic/fragments/integration_field.rb
prismic.io-1.8.1 lib/prismic/fragments/integration_field.rb
prismic.io-1.8.0 lib/prismic/fragments/integration_field.rb
prismic.io-1.7.0 lib/prismic/fragments/integration_field.rb