Class: ODDB::FiPDF::FachinfoProxy
- Inherits:
-
ODDB::FachinfoDocument
- Object
- ODDB::FachinfoDocument
- ODDB::FiPDF::FachinfoProxy
- Includes:
- DRb::DRbUndumped
- Defined in:
- ext/fipdf/src/fipdf.rb
Constant Summary
Constants inherited from ODDB::FachinfoDocument
ODDB::FachinfoDocument::EXPORT_PROPERTIES
Constants included from OddbYaml
OddbYaml::EXPORT_PROPERTIES, OddbYaml::YAML_URI
Instance Attribute Summary collapse
-
#fachinfo ⇒ Object
readonly
Returns the value of attribute fachinfo.
Instance Method Summary collapse
- #company_name ⇒ Object
- #generic_type ⇒ Object
-
#initialize(fachinfo, language = :de) ⇒ FachinfoProxy
constructor
A new instance of FachinfoProxy.
-
#respond_to?(method, *args) ⇒ Boolean
Work around a bug in ruby’s Delegate Lib.
- #substance_names ⇒ Object
Methods inherited from ODDB::FachinfoDocument
Methods included from OddbYaml
#to_yaml_properties, #to_yaml_type
Constructor Details
#initialize(fachinfo, language = :de) ⇒ FachinfoProxy
Returns a new instance of FachinfoProxy.
65 66 67 68 69 |
# File 'ext/fipdf/src/fipdf.rb', line 65 def initialize(fachinfo, language=:de) @fachinfo = fachinfo @fachinfo_document = fachinfo.send(language) super(@fachinfo_document) end |
Instance Attribute Details
#fachinfo ⇒ Object (readonly)
Returns the value of attribute fachinfo.
64 65 66 |
# File 'ext/fipdf/src/fipdf.rb', line 64 def fachinfo @fachinfo end |
Instance Method Details
#company_name ⇒ Object
70 71 72 |
# File 'ext/fipdf/src/fipdf.rb', line 70 def company_name @fachinfo.company_name end |
#generic_type ⇒ Object
73 74 75 |
# File 'ext/fipdf/src/fipdf.rb', line 73 def generic_type @fachinfo.generic_type end |
#respond_to?(method, *args) ⇒ Boolean
Work around a bug in ruby’s Delegate Lib.
77 78 79 |
# File 'ext/fipdf/src/fipdf.rb', line 77 def respond_to?(method, *args) super method end |
#substance_names ⇒ Object
80 81 82 |
# File 'ext/fipdf/src/fipdf.rb', line 80 def substance_names @fachinfo.substance_names end |