class Pohoda::Parsers::Adb::AddressbookGDPRType
Public Instance Methods
date_after_sale()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 31 def date_after_sale at 'adb:dateAfterSale' end
date_after_sale_attributes()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 35 def date_after_sale_attributes attributes_at 'adb:dateAfterSale' end
date_pre_sale()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 23 def date_pre_sale at 'adb:datePreSale' end
date_pre_sale_attributes()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 27 def date_pre_sale_attributes attributes_at 'adb:datePreSale' end
date_sale()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 15 def date_sale at 'adb:dateSale' end
date_sale_attributes()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 19 def date_sale_attributes attributes_at 'adb:dateSale' end
gdpr_items()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 39 def gdpr_items array_of_at(Adb::GDPRItemType, ['adb:GDPRItems', 'adb:GDPRItem']) end
restrict_processing()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 7 def restrict_processing at 'adb:restrictProcessing' end
restrict_processing_attributes()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 11 def restrict_processing_attributes attributes_at 'adb:restrictProcessing' end
to_h()
click to toggle source
# File lib/pohoda/parsers/adb/addressbook_gdpr_type.rb, line 43 def to_h hash = {} hash[:attributes] = attributes hash[:restrict_processing] = restrict_processing if has? 'adb:restrictProcessing' hash[:restrict_processing_attributes] = restrict_processing_attributes if has? 'adb:restrictProcessing' hash[:date_sale] = date_sale if has? 'adb:dateSale' hash[:date_sale_attributes] = date_sale_attributes if has? 'adb:dateSale' hash[:date_pre_sale] = date_pre_sale if has? 'adb:datePreSale' hash[:date_pre_sale_attributes] = date_pre_sale_attributes if has? 'adb:datePreSale' hash[:date_after_sale] = date_after_sale if has? 'adb:dateAfterSale' hash[:date_after_sale_attributes] = date_after_sale_attributes if has? 'adb:dateAfterSale' hash[:gdpr_items] = gdpr_items.map(&:to_h) if has? 'adb:GDPRItems' hash end