class MoneyS3::Parsers::CenaType

Public Instance Methods

cena() click to toggle source
# File lib/money_s3/parsers/cena_type.rb, line 14
def cena
  at 'Cena'
end
cena_attributes() click to toggle source
# File lib/money_s3/parsers/cena_type.rb, line 18
def cena_attributes
  attributes_at 'Cena'
end
limit() click to toggle source
# File lib/money_s3/parsers/cena_type.rb, line 6
def limit
  at 'Limit'
end
limit_attributes() click to toggle source
# File lib/money_s3/parsers/cena_type.rb, line 10
def limit_attributes
  attributes_at 'Limit'
end
sleva() click to toggle source
# File lib/money_s3/parsers/cena_type.rb, line 22
def sleva
  at 'Sleva'
end
sleva_attributes() click to toggle source
# File lib/money_s3/parsers/cena_type.rb, line 26
def sleva_attributes
  attributes_at 'Sleva'
end
to_h() click to toggle source
# File lib/money_s3/parsers/cena_type.rb, line 30
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:limit] = limit if has? 'Limit'
  hash[:limit_attributes] = limit_attributes if has? 'Limit'
  hash[:cena] = cena if has? 'Cena'
  hash[:cena_attributes] = cena_attributes if has? 'Cena'
  hash[:sleva] = sleva if has? 'Sleva'
  hash[:sleva_attributes] = sleva_attributes if has? 'Sleva'

  hash
end