Sha256: 03d78e0d5742d858c3df6ecd2d39416023a5e4b6907eb8d05561b7a674ece57a
Contents?: true
Size: 689 Bytes
Versions: 5
Compression:
Stored size: 689 Bytes
Contents
# frozen_string_literal: true require 'creditsafe/base_model' require 'creditsafe/models/basic_information' require 'creditsafe/models/activity_classification' module Creditsafe module Models class CompanyIdentification < BaseModel attributes :basic_information, :activity_classifications def self.build(json:) super.tap do |record| record.basic_information = BasicInformation.build(json: json.fetch(:basicInformation, {})) record.activity_classifications = json.fetch(:activityClassifications, []) .map { |ac| ActivityClassification.build(json: ac) } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems