class MoneyS3::Parsers::MzdoveObdobiType

Public Instance Methods

funkce() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 22
def funkce
  at 'Funkce'
end
funkce_attributes() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 26
def funkce_attributes
  attributes_at 'Funkce'
end
mesic() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 6
def mesic
  at 'Mesic'
end
mesic_attributes() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 10
def mesic_attributes
  attributes_at 'Mesic'
end
prac_pomer() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 30
def prac_pomer
  submodel_at(PracPomer, 'PracPomer')
end
rok() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 14
def rok
  at 'Rok'
end
rok_attributes() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 18
def rok_attributes
  attributes_at 'Rok'
end
to_h() click to toggle source
# File lib/money_s3/parsers/mzdove_obdobi_type.rb, line 34
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:mesic] = mesic if has? 'Mesic'
  hash[:mesic_attributes] = mesic_attributes if has? 'Mesic'
  hash[:rok] = rok if has? 'Rok'
  hash[:rok_attributes] = rok_attributes if has? 'Rok'
  hash[:funkce] = funkce if has? 'Funkce'
  hash[:funkce_attributes] = funkce_attributes if has? 'Funkce'
  hash[:prac_pomer] = prac_pomer.to_h if has? 'PracPomer'

  hash
end