Class: Pdfrb::Document::Portfolio::Field
- Inherits:
-
Struct
- Object
- Struct
- Pdfrb::Document::Portfolio::Field
- Defined in:
- lib/pdfrb/document/portfolio.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#order ⇒ Object
Returns the value of attribute order.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
12 13 14 |
# File 'lib/pdfrb/document/portfolio.rb', line 12 def name @name end |
#order ⇒ Object
Returns the value of attribute order
12 13 14 |
# File 'lib/pdfrb/document/portfolio.rb', line 12 def order @order end |
#subtype ⇒ Object
Returns the value of attribute subtype
12 13 14 |
# File 'lib/pdfrb/document/portfolio.rb', line 12 def subtype @subtype end |
#type ⇒ Object
Returns the value of attribute type
12 13 14 |
# File 'lib/pdfrb/document/portfolio.rb', line 12 def type @type end |
Instance Method Details
#pdf_hash ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/pdfrb/document/portfolio.rb', line 13 def pdf_hash h = { N: name, T: type } h[:FT] = type unless type == :text h[:Subtype] = subtype if subtype h[:O] = order if order h end |