Sha256: 0997aa8d3e85b54fdf5076db1c616e649396740ebd58f1d08be511ff45bb4791

Contents?: true

Size: 655 Bytes

Versions: 4

Compression:

Stored size: 655 Bytes

Contents

require 'pdf_ravager/field_types/acro_form'
require 'pdf_ravager/field_types/xfa'

module PDFRavager
  module Fields
    class Radio
      include FieldTypes::AcroForm
      include FieldTypes::XFA

      attr_reader :group_name, :name

      def initialize(group_name, name)
        @group_name, @name = group_name, name
      end

      def ==(other)
        self.group_name == other.group_name && self.name == other.name
      end

      def acro_form_name
        @group_name
      end

      def xfa_name
        @group_name
      end

      def acro_form_value
        @name
      end

      def xfa_value
        @name
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pdf_ravager-0.2.2 lib/pdf_ravager/fields/radio.rb
pdf_ravager-0.2.1 lib/pdf_ravager/fields/radio.rb
pdf_ravager-0.2.0 lib/pdf_ravager/fields/radio.rb
pdf_ravager-0.1.0 lib/pdf_ravager/fields/radio.rb