Class: MoneyS3::Parsers::VazbaType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::VazbaType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/vazba_type.rb
Instance Method Summary collapse
- #doklad ⇒ Object
- #pod_typ ⇒ Object
- #pod_typ_attributes ⇒ Object
- #to_h ⇒ Object
- #typ ⇒ Object
- #typ_attributes ⇒ Object
Instance Method Details
#doklad ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/vazba_type.rb', line 22 def doklad submodel_at(Doklad, 'Doklad') end |
#pod_typ ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/vazba_type.rb', line 14 def pod_typ at 'PodTyp' end |
#pod_typ_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/vazba_type.rb', line 18 def pod_typ_attributes attributes_at 'PodTyp' end |
#to_h ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# 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 ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/vazba_type.rb', line 6 def typ at 'Typ' end |
#typ_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/vazba_type.rb', line 10 def typ_attributes attributes_at 'Typ' end |