lib/money_s3/parsers/reference.rb in money_s3-0.10.0 vs lib/money_s3/parsers/reference.rb in money_s3-0.11.0
- old
+ new
@@ -1,23 +1,19 @@
-require 'money_s3/parsers/base_parser'
-require 'money_s3/parsers/kusovnik_type'
-require 'money_s3/parsers/vzor_komponenta_type'
-
module MoneyS3
module Parsers
class Reference
- include BaseParser
+ include ParserCore::BaseParser
def typ_kusovnik
submodel_at(KusovnikType, 'TypKusovnik')
end
def vzor
submodel_at(VzorKomponentaType, 'Vzor')
end
def to_h_with_attrs
- hash = HashWithAttributes.new({}, attributes)
+ hash = ParserCore::HashWithAttributes.new({}, attributes)
hash[:typ_kusovnik] = typ_kusovnik.to_h_with_attrs if has? 'TypKusovnik'
hash[:vzor] = vzor.to_h_with_attrs if has? 'Vzor'
hash
\ No newline at end of file