Class: PDFRavager::Fields::Radio

Inherits:
Object
  • Object
show all
Includes:
PDFRavager::FieldTypes::AcroForm, PDFRavager::FieldTypes::XFA
Defined in:
lib/pdf_ravager/fields/radio.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PDFRavager::FieldTypes::XFA

#set_xfa_value, #xfa_node_type

Methods included from PDFRavager::FieldTypes::AcroForm

#set_acro_form_value

Constructor Details

#initialize(group_name, name) ⇒ Radio

Returns a new instance of Radio.



12
13
14
# File 'lib/pdf_ravager/fields/radio.rb', line 12

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

Instance Attribute Details

#group_nameObject (readonly)

Returns the value of attribute group_name.



10
11
12
# File 'lib/pdf_ravager/fields/radio.rb', line 10

def group_name
  @group_name
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/pdf_ravager/fields/radio.rb', line 10

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



16
17
18
# File 'lib/pdf_ravager/fields/radio.rb', line 16

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

#acro_form_nameObject



20
21
22
# File 'lib/pdf_ravager/fields/radio.rb', line 20

def acro_form_name
  @group_name
end

#acro_form_valueObject



28
29
30
# File 'lib/pdf_ravager/fields/radio.rb', line 28

def acro_form_value
  @name
end

#xfa_nameObject



24
25
26
# File 'lib/pdf_ravager/fields/radio.rb', line 24

def xfa_name
  @group_name
end

#xfa_valueObject



32
33
34
# File 'lib/pdf_ravager/fields/radio.rb', line 32

def xfa_value
  @name
end