class Pohoda::Parsers::Ftr::FilterExtIdType

Public Instance Methods

ext_id() click to toggle source
# File lib/pohoda/parsers/ftr/filter_ext_id_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'ftr:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/ftr/filter_ext_id_type.rb, line 7
def id
  at 'ftr:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_ext_id_type.rb, line 11
def id_attributes
  attributes_at 'ftr:id'
end
to_h() click to toggle source
# File lib/pohoda/parsers/ftr/filter_ext_id_type.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'ftr:id'
  hash[:id_attributes] = id_attributes if has? 'ftr:id'
  hash[:ext_id] = ext_id.to_h if has? 'ftr:extId'

  hash
end