Class: MoneyS3::Parsers::Doklad

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseParser
Defined in:
lib/money_s3/parsers/doklad.rb

Instance Method Summary collapse

Instance Method Details

#cisloObject



14
15
16
# File 'lib/money_s3/parsers/doklad.rb', line 14

def cislo
  at 'Cislo'
end

#cislo_attributesObject



18
19
20
# File 'lib/money_s3/parsers/doklad.rb', line 18

def cislo_attributes
  attributes_at 'Cislo'
end

#dat_uc_prObject



54
55
56
# File 'lib/money_s3/parsers/doklad.rb', line 54

def dat_uc_pr
  at 'DatUcPr'
end

#dat_uc_pr_attributesObject



58
59
60
# File 'lib/money_s3/parsers/doklad.rb', line 58

def dat_uc_pr_attributes
  attributes_at 'DatUcPr'
end

#druhObject



6
7
8
# File 'lib/money_s3/parsers/doklad.rb', line 6

def druh
  at 'Druh'
end

#druh_attributesObject



10
11
12
# File 'lib/money_s3/parsers/doklad.rb', line 10

def druh_attributes
  attributes_at 'Druh'
end

#guidObject



22
23
24
# File 'lib/money_s3/parsers/doklad.rb', line 22

def guid
  at 'GUID'
end

#guid_attributesObject



26
27
28
# File 'lib/money_s3/parsers/doklad.rb', line 26

def guid_attributes
  attributes_at 'GUID'
end

#plneno_dphObject



62
63
64
# File 'lib/money_s3/parsers/doklad.rb', line 62

def plneno_dph
  at 'PlnenoDPH'
end

#plneno_dph_attributesObject



66
67
68
# File 'lib/money_s3/parsers/doklad.rb', line 66

def plneno_dph_attributes
  attributes_at 'PlnenoDPH'
end

#prijat_doklObject



30
31
32
# File 'lib/money_s3/parsers/doklad.rb', line 30

def prijat_dokl
  at 'PrijatDokl'
end

#prijat_dokl_attributesObject



34
35
36
# File 'lib/money_s3/parsers/doklad.rb', line 34

def prijat_dokl_attributes
  attributes_at 'PrijatDokl'
end

#to_hObject



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/money_s3/parsers/doklad.rb', line 70

def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:druh] = druh if has? 'Druh'
  hash[:druh_attributes] = druh_attributes if has? 'Druh'
  hash[:cislo] = cislo if has? 'Cislo'
  hash[:cislo_attributes] = cislo_attributes if has? 'Cislo'
  hash[:guid] = guid if has? 'GUID'
  hash[:guid_attributes] = guid_attributes if has? 'GUID'
  hash[:prijat_dokl] = prijat_dokl if has? 'PrijatDokl'
  hash[:prijat_dokl_attributes] = prijat_dokl_attributes if has? 'PrijatDokl'
  hash[:var_symbol] = var_symbol if has? 'VarSymbol'
  hash[:var_symbol_attributes] = var_symbol_attributes if has? 'VarSymbol'
  hash[:vystaveno] = vystaveno if has? 'Vystaveno'
  hash[:vystaveno_attributes] = vystaveno_attributes if has? 'Vystaveno'
  hash[:dat_uc_pr] = dat_uc_pr if has? 'DatUcPr'
  hash[:dat_uc_pr_attributes] = dat_uc_pr_attributes if has? 'DatUcPr'
  hash[:plneno_dph] = plneno_dph if has? 'PlnenoDPH'
  hash[:plneno_dph_attributes] = plneno_dph_attributes if has? 'PlnenoDPH'

  hash
end

#var_symbolObject



38
39
40
# File 'lib/money_s3/parsers/doklad.rb', line 38

def var_symbol
  at 'VarSymbol'
end

#var_symbol_attributesObject



42
43
44
# File 'lib/money_s3/parsers/doklad.rb', line 42

def var_symbol_attributes
  attributes_at 'VarSymbol'
end

#vystavenoObject



46
47
48
# File 'lib/money_s3/parsers/doklad.rb', line 46

def vystaveno
  at 'Vystaveno'
end

#vystaveno_attributesObject



50
51
52
# File 'lib/money_s3/parsers/doklad.rb', line 50

def vystaveno_attributes
  attributes_at 'Vystaveno'
end