module Pohoda::Parsers::Pro::Groups::VoucherPaymentGroup

Public Instance Methods

to_h() click to toggle source
# File lib/pohoda/parsers/pro/groups/voucher_payment_group.rb, line 14
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:value_food_voucher] = value_food_voucher if has? 'pro:valueFoodVoucher'
  hash[:value_food_voucher_attributes] = value_food_voucher_attributes if has? 'pro:valueFoodVoucher'

  hash
end
value_food_voucher() click to toggle source
# File lib/pohoda/parsers/pro/groups/voucher_payment_group.rb, line 6
def value_food_voucher
  at 'pro:valueFoodVoucher'
end
value_food_voucher_attributes() click to toggle source
# File lib/pohoda/parsers/pro/groups/voucher_payment_group.rb, line 10
def value_food_voucher_attributes
  attributes_at 'pro:valueFoodVoucher'
end