Class: ODDB::FiPDF::FachinfoProxy

Inherits:
ODDB::FachinfoDocument show all
Includes:
DRb::DRbUndumped
Defined in:
ext/fipdf/src/fipdf.rb

Constant Summary

Constants inherited from ODDB::FachinfoDocument

CHAPTERS, EXPORT_PROPERTIES

Constants included from OddbYaml

EXPORT_PROPERTIES, YAML_URI

Constants included from Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ODDB::FachinfoDocument

#chapter_names, #chapters, #each_chapter, #empty?, #first_chapter, #odba_id

Methods included from OddbYaml

#to_yaml_properties, #to_yaml_type

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #pointer_descr, #structural_ancestors, #undiffable?, #update_values

Constructor Details

- (FachinfoProxy) initialize(fachinfo, language = :de)

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

- (Object) fachinfo (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

- (Object) company_name



70
71
72
# File 'ext/fipdf/src/fipdf.rb', line 70

def company_name
  @fachinfo.company_name
end

- (Object) generic_type



73
74
75
# File 'ext/fipdf/src/fipdf.rb', line 73

def generic_type
  @fachinfo.generic_type
end

- (Boolean) respond_to?(method, *args)

Work around a bug in ruby’s Delegate Lib.

Returns:

  • (Boolean)


77
78
79
# File 'ext/fipdf/src/fipdf.rb', line 77

def respond_to?(method, *args)
  super method
end

- (Object) substance_names



80
81
82
# File 'ext/fipdf/src/fipdf.rb', line 80

def substance_names
  @fachinfo.substance_names
end