class MoneyS3::Parsers::PartnerType

Public Instance Methods

partner() click to toggle source
# File lib/money_s3/parsers/partner_type.rb, line 6
def partner
  submodel_at(FirmaType, 'Partner')
end
to_h() click to toggle source
# 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