Class: MoneyS3::Parsers::PartnerType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::PartnerType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/partner_type.rb
Instance Method Summary collapse
Instance Method Details
#partner ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/partner_type.rb', line 6 def partner submodel_at(FirmaType, 'Partner') end |
#to_h ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/money_s3/parsers/partner_type.rb', line 10 def to_h hash = {} hash[:attributes] = attributes hash[:partner] = partner.to_h if has? 'Partner' hash end |