Class: MoneyS3::Parsers::DefSubPolType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::DefSubPolType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/def_sub_pol_type.rb
Instance Method Summary collapse
Instance Method Details
#mj_na_sadu ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/def_sub_pol_type.rb', line 6 def mj_na_sadu at 'MJNaSadu' end |
#mj_na_sadu_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/def_sub_pol_type.rb', line 10 def mj_na_sadu_attributes attributes_at 'MJNaSadu' end |
#polozka ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/def_sub_pol_type.rb', line 14 def polozka submodel_at(PolSklDoklType, 'Polozka') end |
#to_h ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# 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 |