class MoneyS3::Parsers::VazbaType

Public Instance Methods

doklad() click to toggle source
# File lib/money_s3/parsers/vazba_type.rb, line 22
def doklad
  submodel_at(Doklad, 'Doklad')
end
pod_typ() click to toggle source
# File lib/money_s3/parsers/vazba_type.rb, line 14
def pod_typ
  at 'PodTyp'
end
pod_typ_attributes() click to toggle source
# File lib/money_s3/parsers/vazba_type.rb, line 18
def pod_typ_attributes
  attributes_at 'PodTyp'
end
to_h() click to toggle source
# File lib/money_s3/parsers/vazba_type.rb, line 26
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:typ] = typ if has? 'Typ'
  hash[:typ_attributes] = typ_attributes if has? 'Typ'
  hash[:pod_typ] = pod_typ if has? 'PodTyp'
  hash[:pod_typ_attributes] = pod_typ_attributes if has? 'PodTyp'
  hash[:doklad] = doklad.to_h if has? 'Doklad'

  hash
end
typ() click to toggle source
# File lib/money_s3/parsers/vazba_type.rb, line 6
def typ
  at 'Typ'
end
typ_attributes() click to toggle source
# File lib/money_s3/parsers/vazba_type.rb, line 10
def typ_attributes
  attributes_at 'Typ'
end