class MoneyS3::Parsers::DefSubPolType

Public Instance Methods

mj_na_sadu() click to toggle source
# File lib/money_s3/parsers/def_sub_pol_type.rb, line 6
def mj_na_sadu
  at 'MJNaSadu'
end
mj_na_sadu_attributes() click to toggle source
# File lib/money_s3/parsers/def_sub_pol_type.rb, line 10
def mj_na_sadu_attributes
  attributes_at 'MJNaSadu'
end
polozka() click to toggle source
# File lib/money_s3/parsers/def_sub_pol_type.rb, line 14
def polozka
  submodel_at(PolSklDoklType, 'Polozka')
end
to_h() click to toggle source
# File lib/money_s3/parsers/def_sub_pol_type.rb, line 18
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:mj_na_sadu] = mj_na_sadu if has? 'MJNaSadu'
  hash[:mj_na_sadu_attributes] = mj_na_sadu_attributes if has? 'MJNaSadu'
  hash[:polozka] = polozka.to_h if has? 'Polozka'

  hash
end