Sha256: 837971b8e03c42e1d3a5b81eb54ac680301088383c88f80b9418d12f74d82a92
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/vlajka_type' module MoneyS3 module Parsers class Vlajky include BaseParser def global submodel_at(VlajkaType, 'Global') end def user submodel_at(VlajkaType, 'User') end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:global] = global.to_h if has? 'Global' hash[:user] = user.to_h if has? 'User' hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.6.0 | lib/money_s3/parsers/vlajky.rb |