class MoneyS3::Parsers::SubpolInvDType

Public Instance Methods

mn_sada() click to toggle source
# File lib/money_s3/parsers/subpol_inv_d_type.rb, line 6
def mn_sada
  at 'MnSada'
end
mn_sada_attributes() click to toggle source
# File lib/money_s3/parsers/subpol_inv_d_type.rb, line 10
def mn_sada_attributes
  attributes_at 'MnSada'
end
polozka() click to toggle source
# File lib/money_s3/parsers/subpol_inv_d_type.rb, line 14
def polozka
  submodel_at(PolInvDoklType, 'Polozka')
end
to_h() click to toggle source
# File lib/money_s3/parsers/subpol_inv_d_type.rb, line 18
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:mn_sada] = mn_sada if has? 'MnSada'
  hash[:mn_sada_attributes] = mn_sada_attributes if has? 'MnSada'
  hash[:polozka] = polozka.to_h if has? 'Polozka'

  hash
end