pharmaobservatory 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +163 -9
- data/docs/AnimalWelfareAssurancesResponse.md +58 -0
- data/docs/{BiomarkerAssayEvidenceResponseBuild.md → AnimalWelfareAssurancesResponseBuild.md} +2 -2
- data/docs/{BiomarkerAssayEvidenceResponseFreshness.md → AnimalWelfareAssurancesResponseFreshness.md} +2 -2
- data/docs/{BiomarkerAssayEvidenceResponseScope.md → AnimalWelfareAssurancesResponseScope.md} +2 -2
- data/docs/AnimalWelfareAssurancesRow.md +48 -0
- data/docs/BiomarkerAlleleFrequenciesResponse.md +58 -0
- data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
- data/docs/BiomarkerAssayEvidenceResponse.md +3 -3
- data/docs/BiomarkerAssayProvidersResponse.md +58 -0
- data/docs/BiomarkerAssayProvidersRow.md +72 -0
- data/docs/BiomarkerAssayWhitespaceResponse.md +3 -3
- data/docs/BiomarkerBqpAssertionsResponse.md +3 -3
- data/docs/BiomarkerCdxAssertionsResponse.md +3 -3
- data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
- data/docs/BiomarkerEvidenceByYearRow.md +32 -0
- data/docs/BiomarkerEvidenceResponse.md +3 -3
- data/docs/BiomarkerLiteratureResponse.md +3 -3
- data/docs/BiomarkerPublishingCompaniesResponse.md +3 -3
- data/docs/BiomarkerRelationsResponse.md +3 -3
- data/docs/BiomarkerSampleCoverageResponse.md +3 -3
- data/docs/BiomarkerSamplePrevalenceResponse.md +3 -3
- data/docs/BiomarkerTraversalStatusResponse.md +58 -0
- data/docs/BiomarkerTraversalStatusRow.md +36 -0
- data/docs/BiomarkerValidationResponse.md +3 -3
- data/docs/BiomarkerVariantMentionsResponse.md +3 -3
- data/docs/BiomarkersApi.md +320 -0
- data/docs/BiomarkersRecord.md +2 -2
- data/docs/BiomarkersResponse.md +3 -3
- data/docs/BrandCompaniesResponse.md +3 -3
- data/docs/BrandRevenueResponse.md +3 -3
- data/docs/CatalystsResponse.md +3 -3
- data/docs/CellLinesRecord.md +2 -2
- data/docs/CellLinesResponse.md +3 -3
- data/docs/CliaCertificatesResponse.md +3 -3
- data/docs/CompaniesApi.md +2113 -391
- data/docs/CompaniesRecord.md +2 -2
- data/docs/CompaniesRecordAttributes.md +2 -0
- data/docs/CompaniesResponse.md +3 -3
- data/docs/CompanyAssetsResponse.md +3 -3
- data/docs/CompanyBiomarkerCapabilityResponse.md +58 -0
- data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
- data/docs/CompanyCollaboratorsResponse.md +58 -0
- data/docs/CompanyCollaboratorsRow.md +42 -0
- data/docs/CompanyCompetitorActivityResponse.md +58 -0
- data/docs/CompanyCompetitorActivityRow.md +42 -0
- data/docs/CompanyCompetitorsResponse.md +58 -0
- data/docs/CompanyCompetitorsRow.md +66 -0
- data/docs/CompanyFinancialsResponse.md +58 -0
- data/docs/CompanyFinancialsRow.md +108 -0
- data/docs/CompanyFirmographicsResponse.md +58 -0
- data/docs/CompanyFirmographicsRow.md +80 -0
- data/docs/CompanyFundingEventsResponse.md +3 -3
- data/docs/CompanyFundingSummaryResponse.md +3 -3
- data/docs/CompanyMembersResponse.md +3 -3
- data/docs/CompanyProgramsResponse.md +3 -3
- data/docs/CompanyRareDiseaseDeclarationsResponse.md +58 -0
- data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
- data/docs/CompanyTargetsResponse.md +3 -3
- data/docs/CompanyTimelineResponse.md +58 -0
- data/docs/CompanyTimelineRow.md +68 -0
- data/docs/CompanyTrialGeographyResponse.md +3 -3
- data/docs/CompanyTrialSitesResponse.md +3 -3
- data/docs/CompanyUsPatentsResponse.md +58 -0
- data/docs/CompanyUsPatentsRow.md +34 -0
- data/docs/ConditionAdverseEventsResponse.md +3 -3
- data/docs/ConditionBurdenResponse.md +3 -3
- data/docs/ConditionDeliveryResponse.md +3 -3
- data/docs/ConditionDrugsResponse.md +3 -3
- data/docs/ConditionInvestigatorOrganizationsResponse.md +58 -0
- data/docs/ConditionInvestigatorOrganizationsRow.md +44 -0
- data/docs/ConditionPrevalenceResponse.md +3 -3
- data/docs/ConditionPublicationsResponse.md +3 -3
- data/docs/ConditionRecruitmentByPhaseResponse.md +3 -3
- data/docs/ConditionRecruitmentDurationResponse.md +3 -3
- data/docs/ConditionSitesResponse.md +3 -3
- data/docs/ConditionTrialStartForecastResponse.md +3 -3
- data/docs/ConditionTrialsResponse.md +3 -3
- data/docs/ConditionsApi.md +160 -0
- data/docs/ConditionsRecord.md +2 -2
- data/docs/ConditionsResponse.md +3 -3
- data/docs/CroFootprintResponse.md +3 -3
- data/docs/CroTrialsResponse.md +3 -3
- data/docs/DebarmentsResponse.md +3 -3
- data/docs/DrugApprovalsResponse.md +3 -3
- data/docs/DrugAspCodesResponse.md +3 -3
- data/docs/DrugBrandsResponse.md +3 -3
- data/docs/DrugCombinationsResponse.md +3 -3
- data/docs/DrugDeclaredPatentsResponse.md +3 -3
- data/docs/DrugInvestigatorsResponse.md +58 -0
- data/docs/DrugInvestigatorsRow.md +32 -0
- data/docs/DrugLabelSafetyResponse.md +3 -3
- data/docs/DrugMedicareSpendResponse.md +3 -3
- data/docs/DrugPatentCliffResponse.md +3 -3
- data/docs/DrugPatentMentionsResponse.md +3 -3
- data/docs/DrugPatentOwnersResponse.md +3 -3
- data/docs/DrugPricingResponse.md +3 -3
- data/docs/DrugRecallsResponse.md +3 -3
- data/docs/DrugRegulatoryResponse.md +3 -3
- data/docs/DrugSitesResponse.md +3 -3
- data/docs/DrugTargetsResponse.md +3 -3
- data/docs/DrugTrialConditionsResponse.md +3 -3
- data/docs/DrugTrialsResponse.md +3 -3
- data/docs/DrugVariantsResponse.md +3 -3
- data/docs/DrugsApi.md +80 -0
- data/docs/DrugsRecord.md +2 -2
- data/docs/DrugsResponse.md +3 -3
- data/docs/EnforcementEventsResponse.md +3 -3
- data/docs/EnforcementEventsRow.md +22 -4
- data/docs/GxpFacilitiesResponse.md +3 -3
- data/docs/GxpFacilitiesRow.md +49 -1
- data/docs/HospitalBedsYearlyResponse.md +3 -3
- data/docs/HospitalFacilityChangesResponse.md +3 -3
- data/docs/HospitalsApi.md +80 -0
- data/docs/HospitalsRecord.md +2 -2
- data/docs/HospitalsResponse.md +3 -3
- data/docs/ImportRefusalsResponse.md +3 -3
- data/docs/InspectionFindingsResponse.md +3 -3
- data/docs/InspectionsResponse.md +3 -3
- data/docs/InstitutionalHoldingsResponse.md +3 -3
- data/docs/InstitutionalQuarterTotalsResponse.md +3 -3
- data/docs/InvestigatorConditionsResponse.md +58 -0
- data/docs/InvestigatorConditionsRow.md +28 -0
- data/docs/InvestigatorDebarmentsResponse.md +58 -0
- data/docs/InvestigatorDebarmentsRow.md +32 -0
- data/docs/InvestigatorHospitalsResponse.md +58 -0
- data/docs/InvestigatorHospitalsRow.md +28 -0
- data/docs/InvestigatorInspectionsResponse.md +58 -0
- data/docs/InvestigatorInspectionsRow.md +46 -0
- data/docs/InvestigatorPublicationsResponse.md +58 -0
- data/docs/InvestigatorPublicationsRow.md +34 -0
- data/docs/InvestigatorTopicsResponse.md +58 -0
- data/docs/InvestigatorTopicsRow.md +34 -0
- data/docs/InvestigatorTrialsResponse.md +58 -0
- data/docs/InvestigatorTrialsRow.md +64 -0
- data/docs/InvestigatorsApi.md +1113 -0
- data/docs/InvestigatorsRecord.md +38 -0
- data/docs/InvestigatorsResponse.md +58 -0
- data/docs/InvestigatorsRow.md +70 -0
- data/docs/InvestorFundsResponse.md +3 -3
- data/docs/InvestorPortfolioResponse.md +3 -3
- data/docs/InvestorPrivateFundsResponse.md +3 -3
- data/docs/InvestorsRecord.md +2 -2
- data/docs/InvestorsResponse.md +3 -3
- data/docs/InvestorsRow.md +6 -0
- data/docs/LegalEntitiesApi.md +1401 -281
- data/docs/LegalEntitiesRecord.md +2 -2
- data/docs/LegalEntitiesRecordAttributes.md +6 -0
- data/docs/LegalEntitiesResponse.md +3 -3
- data/docs/LegalEntitySecFilingsResponse.md +58 -0
- data/docs/LegalEntitySecFilingsRow.md +44 -0
- data/docs/ManagersRecord.md +2 -2
- data/docs/ManagersResponse.md +3 -3
- data/docs/OrgDisclosureTrendResponse.md +58 -0
- data/docs/OrgDisclosureTrendRow.md +62 -0
- data/docs/OrgDisclosuresResponse.md +3 -3
- data/docs/OrgRelationshipsResponse.md +3 -3
- data/docs/OwnershipObservationsResponse.md +58 -0
- data/docs/OwnershipObservationsRow.md +168 -0
- data/docs/OwnershipPercentagesResponse.md +3 -3
- data/docs/OwnershipPositionsResponse.md +3 -3
- data/docs/OwnershipSourceCoverageResponse.md +58 -0
- data/docs/OwnershipSourceCoverageRow.md +62 -0
- data/docs/PdufaDatesResponse.md +3 -3
- data/docs/ProgramLicensingCandidatesResponse.md +3 -3
- data/docs/ProgramsResponse.md +3 -3
- data/docs/RareDiseaseGenesResponse.md +3 -3
- data/docs/RareDiseaseHierarchyResponse.md +3 -3
- data/docs/RareDiseaseInvestigatorCoverageResponse.md +3 -3
- data/docs/RareDiseaseInvestigatorsResponse.md +3 -3
- data/docs/RareDiseaseMappingsResponse.md +3 -3
- data/docs/RareDiseaseOrganizationsResponse.md +3 -3
- data/docs/RareDiseasePrevalenceResponse.md +3 -3
- data/docs/RareDiseaseRarityEvidenceResponse.md +3 -3
- data/docs/RareDiseaseRarityResponse.md +3 -3
- data/docs/RareDiseaseReplacementsResponse.md +3 -3
- data/docs/RareDiseaseSiteCoverageResponse.md +3 -3
- data/docs/RareDiseaseSponsorsResponse.md +3 -3
- data/docs/RareDiseaseTrialCoverageResponse.md +3 -3
- data/docs/RareDiseaseTrialSitesResponse.md +3 -3
- data/docs/RareDiseaseTrialsResponse.md +3 -3
- data/docs/RareDiseasesRecord.md +2 -2
- data/docs/RareDiseasesResponse.md +3 -3
- data/docs/RecallsResponse.md +3 -3
- data/docs/RwdConductorDeliveryResponse.md +58 -0
- data/docs/RwdConductorDeliveryRow.md +74 -0
- data/docs/RwdConductorFootprintResponse.md +58 -0
- data/docs/RwdConductorFootprintRow.md +40 -0
- data/docs/RwdConductorStudiesResponse.md +58 -0
- data/docs/RwdConductorStudiesRow.md +42 -0
- data/docs/RwdConductorsApi.md +393 -0
- data/docs/RwdConductorsRecord.md +38 -0
- data/docs/RwdConductorsResponse.md +58 -0
- data/docs/RwdConductorsRow.md +72 -0
- data/docs/RwdCoverageResponse.md +3 -3
- data/docs/RwdInstitutionsApi.md +153 -0
- data/docs/RwdInstitutionsRecord.md +38 -0
- data/docs/RwdInstitutionsResponse.md +58 -0
- data/docs/RwdInstitutionsRow.md +154 -0
- data/docs/RwdNetworksApi.md +153 -0
- data/docs/RwdNetworksRecord.md +38 -0
- data/docs/RwdNetworksResponse.md +58 -0
- data/docs/RwdNetworksRow.md +110 -0
- data/docs/RwdRegisterProvenanceResponse.md +3 -3
- data/docs/RwdRegistersRecord.md +2 -2
- data/docs/RwdSourceAgeBandsResponse.md +3 -3
- data/docs/RwdSourceConditionsResponse.md +3 -3
- data/docs/RwdSourceEtlMappingsResponse.md +3 -3
- data/docs/RwdSourceLinkagesResponse.md +3 -3
- data/docs/RwdSourceTypesResponse.md +3 -3
- data/docs/RwdSourceVocabulariesResponse.md +3 -3
- data/docs/RwdSourcesRecord.md +2 -2
- data/docs/RwdSourcesResponse.md +3 -3
- data/docs/RwdStudiesApi.md +80 -0
- data/docs/RwdStudiesRecord.md +2 -2
- data/docs/RwdStudiesResponse.md +3 -3
- data/docs/RwdStudyConditionsResponse.md +3 -3
- data/docs/RwdStudyDataSourcesResponse.md +3 -3
- data/docs/RwdStudyDrugsResponse.md +3 -3
- data/docs/RwdStudyMilestonesResponse.md +3 -3
- data/docs/RwdWithheldFieldsResponse.md +3 -3
- data/docs/SbtiCrosscheckResponse.md +58 -0
- data/docs/SbtiCrosscheckRow.md +48 -0
- data/docs/SecPdufaDatesResponse.md +3 -3
- data/docs/SiteBedsYearlyResponse.md +3 -3
- data/docs/SiteCroTrialsResponse.md +3 -3
- data/docs/SiteHospitalsResponse.md +3 -3
- data/docs/SiteInvestigatorsResponse.md +3 -3
- data/docs/SiteTrialConditionsResponse.md +3 -3
- data/docs/SiteTrialDrugsResponse.md +3 -3
- data/docs/SiteTrialsResponse.md +3 -3
- data/docs/SitesRecord.md +2 -2
- data/docs/SitesResponse.md +3 -3
- data/docs/SponsorDeliveryResponse.md +58 -0
- data/docs/SponsorDeliveryRow.md +52 -0
- data/docs/SponsorPatentMentionsResponse.md +58 -0
- data/docs/SponsorPatentMentionsRow.md +42 -0
- data/docs/SponsorPublicationsResponse.md +58 -0
- data/docs/SponsorPublicationsRow.md +42 -0
- data/docs/SponsorRecruitmentByPhaseResponse.md +3 -3
- data/docs/SponsorRecruitmentDurationResponse.md +3 -3
- data/docs/SponsorTrialConditionsResponse.md +58 -0
- data/docs/SponsorTrialConditionsRow.md +36 -0
- data/docs/SponsorTrialDrugsResponse.md +58 -0
- data/docs/SponsorTrialDrugsRow.md +34 -0
- data/docs/SponsorTrialStartForecastResponse.md +3 -3
- data/docs/SponsorTrialsResponse.md +3 -3
- data/docs/SupplierCapabilityEsgResponse.md +3 -3
- data/docs/SupplierServicesResponse.md +3 -3
- data/docs/SupplierSitesResponse.md +3 -3
- data/docs/SuppliersRecord.md +2 -2
- data/docs/SuppliersResponse.md +3 -3
- data/docs/SuppliersRow.md +2 -0
- data/docs/TargetAssociationsResponse.md +3 -3
- data/docs/TargetCrowdingResponse.md +3 -3
- data/docs/TargetDrugsResponse.md +3 -3
- data/docs/TargetEvidenceResponse.md +3 -3
- data/docs/TargetInvestigatorsResponse.md +58 -0
- data/docs/TargetInvestigatorsRow.md +30 -0
- data/docs/TargetPatentMentionsResponse.md +3 -3
- data/docs/TargetProgramsResponse.md +3 -3
- data/docs/TargetPublicationsResponse.md +3 -3
- data/docs/TargetRegulatoryPrecedentResponse.md +3 -3
- data/docs/TargetTrialsResponse.md +3 -3
- data/docs/TargetsApi.md +80 -0
- data/docs/TargetsRecord.md +2 -2
- data/docs/TargetsResponse.md +3 -3
- data/docs/TrialAdverseEventsResponse.md +3 -3
- data/docs/TrialChangesResponse.md +3 -3
- data/docs/TrialDeliveryResponse.md +3 -3
- data/docs/TrialDemographicsResponse.md +3 -3
- data/docs/TrialDrugClassesResponse.md +3 -3
- data/docs/TrialDrugsResponse.md +3 -3
- data/docs/TrialEnrollmentHistoryResponse.md +3 -3
- data/docs/TrialEnrollmentRateResponse.md +3 -3
- data/docs/TrialExtractedEndpointsResponse.md +3 -3
- data/docs/TrialKolsResponse.md +3 -3
- data/docs/TrialOutcomeMeasuresResponse.md +3 -3
- data/docs/TrialResearchPaymentsResponse.md +3 -3
- data/docs/TrialSiteHistoryResponse.md +3 -3
- data/docs/TrialSitesResponse.md +3 -3
- data/docs/TrialsRecord.md +2 -2
- data/docs/TrialsResponse.md +3 -3
- data/docs/UnmatchedProductRevenueResponse.md +3 -3
- data/docs/UntitledLettersResponse.md +3 -3
- data/docs/WarningLettersResponse.md +3 -3
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +2360 -449
- data/lib/pharmaobservatory/api/conditions_api.rb +168 -0
- data/lib/pharmaobservatory/api/drugs_api.rb +84 -0
- data/lib/pharmaobservatory/api/hospitals_api.rb +84 -0
- data/lib/pharmaobservatory/api/investigators_api.rb +1169 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +1460 -284
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
- data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- data/lib/pharmaobservatory/api/targets_api.rb +84 -0
- data/lib/pharmaobservatory/models/animal_welfare_assurances_response.rb +478 -0
- data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_build.rb → animal_welfare_assurances_response_build.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_freshness.rb → animal_welfare_assurances_response_freshness.rb} +3 -3
- data/lib/pharmaobservatory/models/{biomarker_assay_evidence_response_scope.rb → animal_welfare_assurances_response_scope.rb} +3 -3
- data/lib/pharmaobservatory/models/animal_welfare_assurances_row.rb +392 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
- data/lib/pharmaobservatory/models/biomarker_assay_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
- data/lib/pharmaobservatory/models/biomarker_assay_whitespace_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_bqp_assertions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_cdx_assertions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_literature_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_publishing_companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_relations_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
- data/lib/pharmaobservatory/models/biomarker_validation_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarker_variant_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/biomarkers_record.rb +2 -2
- data/lib/pharmaobservatory/models/biomarkers_response.rb +3 -3
- data/lib/pharmaobservatory/models/brand_companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/brand_revenue_response.rb +3 -3
- data/lib/pharmaobservatory/models/catalysts_response.rb +3 -3
- data/lib/pharmaobservatory/models/cell_lines_record.rb +2 -2
- data/lib/pharmaobservatory/models/cell_lines_response.rb +3 -3
- data/lib/pharmaobservatory/models/clia_certificates_response.rb +3 -3
- data/lib/pharmaobservatory/models/companies_record.rb +2 -2
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +10 -1
- data/lib/pharmaobservatory/models/companies_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_assets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
- data/lib/pharmaobservatory/models/company_collaborators_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_collaborators_row.rb +355 -0
- data/lib/pharmaobservatory/models/company_competitor_activity_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_competitor_activity_row.rb +355 -0
- data/lib/pharmaobservatory/models/company_competitors_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_competitors_row.rb +493 -0
- data/lib/pharmaobservatory/models/company_financials_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_financials_row.rb +718 -0
- data/lib/pharmaobservatory/models/company_firmographics_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_firmographics_row.rb +566 -0
- data/lib/pharmaobservatory/models/company_funding_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_funding_summary_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_members_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_programs_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
- data/lib/pharmaobservatory/models/company_targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_timeline_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_timeline_row.rb +498 -0
- data/lib/pharmaobservatory/models/company_trial_geography_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_trial_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/company_us_patents_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_us_patents_row.rb +311 -0
- data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_burden_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_investigator_organizations_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_investigator_organizations_row.rb +366 -0
- data/lib/pharmaobservatory/models/condition_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_publications_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_recruitment_by_phase_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_recruitment_duration_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trial_start_forecast_response.rb +3 -3
- data/lib/pharmaobservatory/models/condition_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/conditions_record.rb +2 -2
- data/lib/pharmaobservatory/models/conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/cro_footprint_response.rb +3 -3
- data/lib/pharmaobservatory/models/cro_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/debarments_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_approvals_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_brands_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_combinations_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/drug_investigators_row.rb +302 -0
- data/lib/pharmaobservatory/models/drug_label_safety_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_cliff_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_pricing_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_recalls_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_regulatory_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/drug_variants_response.rb +3 -3
- data/lib/pharmaobservatory/models/drugs_record.rb +2 -2
- data/lib/pharmaobservatory/models/drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/enforcement_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/enforcement_events_row.rb +104 -5
- data/lib/pharmaobservatory/models/gxp_facilities_response.rb +3 -3
- data/lib/pharmaobservatory/models/gxp_facilities_row.rb +266 -2
- data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +3 -3
- data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +3 -3
- data/lib/pharmaobservatory/models/hospitals_record.rb +2 -2
- data/lib/pharmaobservatory/models/hospitals_response.rb +3 -3
- data/lib/pharmaobservatory/models/import_refusals_response.rb +3 -3
- data/lib/pharmaobservatory/models/inspection_findings_response.rb +3 -3
- data/lib/pharmaobservatory/models/inspections_response.rb +3 -3
- data/lib/pharmaobservatory/models/institutional_holdings_response.rb +3 -3
- data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +3 -3
- data/lib/pharmaobservatory/models/investigator_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_conditions_row.rb +278 -0
- data/lib/pharmaobservatory/models/investigator_debarments_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_debarments_row.rb +300 -0
- data/lib/pharmaobservatory/models/investigator_hospitals_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_hospitals_row.rb +280 -0
- data/lib/pharmaobservatory/models/investigator_inspections_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_inspections_row.rb +377 -0
- data/lib/pharmaobservatory/models/investigator_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_publications_row.rb +311 -0
- data/lib/pharmaobservatory/models/investigator_topics_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_topics_row.rb +311 -0
- data/lib/pharmaobservatory/models/investigator_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigator_trials_row.rb +478 -0
- data/lib/pharmaobservatory/models/investigators_record.rb +385 -0
- data/lib/pharmaobservatory/models/investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/investigators_row.rb +511 -0
- data/lib/pharmaobservatory/models/investor_funds_response.rb +3 -3
- data/lib/pharmaobservatory/models/investor_portfolio_response.rb +3 -3
- data/lib/pharmaobservatory/models/investor_private_funds_response.rb +3 -3
- data/lib/pharmaobservatory/models/investors_record.rb +2 -2
- data/lib/pharmaobservatory/models/investors_response.rb +3 -3
- data/lib/pharmaobservatory/models/investors_row.rb +34 -1
- data/lib/pharmaobservatory/models/legal_entities_record.rb +2 -2
- data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +28 -1
- data/lib/pharmaobservatory/models/legal_entities_response.rb +3 -3
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
- data/lib/pharmaobservatory/models/managers_record.rb +2 -2
- data/lib/pharmaobservatory/models/managers_response.rb +3 -3
- data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
- data/lib/pharmaobservatory/models/org_disclosures_response.rb +3 -3
- data/lib/pharmaobservatory/models/org_relationships_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_observations_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_observations_row.rb +1048 -0
- data/lib/pharmaobservatory/models/ownership_percentages_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_positions_response.rb +3 -3
- data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
- data/lib/pharmaobservatory/models/pdufa_dates_response.rb +3 -3
- data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +3 -3
- data/lib/pharmaobservatory/models/programs_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/rare_diseases_record.rb +2 -2
- data/lib/pharmaobservatory/models/rare_diseases_response.rb +3 -3
- data/lib/pharmaobservatory/models/recalls_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
- data/lib/pharmaobservatory/models/rwd_coverage_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
- data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
- data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_registers_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_types_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_sources_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_sources_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_studies_record.rb +2 -2
- data/lib/pharmaobservatory/models/rwd_studies_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +3 -3
- data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +478 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
- data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_beds_yearly_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_cro_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_hospitals_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_investigators_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trial_conditions_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trial_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/site_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/sites_record.rb +2 -2
- data/lib/pharmaobservatory/models/sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
- data/lib/pharmaobservatory/models/sponsor_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_publications_row.rb +355 -0
- data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_recruitment_duration_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
- data/lib/pharmaobservatory/models/sponsor_trial_start_forecast_response.rb +3 -3
- data/lib/pharmaobservatory/models/sponsor_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/supplier_capability_esg_response.rb +3 -3
- data/lib/pharmaobservatory/models/supplier_services_response.rb +3 -3
- data/lib/pharmaobservatory/models/supplier_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/suppliers_record.rb +2 -2
- data/lib/pharmaobservatory/models/suppliers_response.rb +3 -3
- data/lib/pharmaobservatory/models/suppliers_row.rb +12 -1
- data/lib/pharmaobservatory/models/target_associations_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_crowding_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_evidence_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_investigators_response.rb +478 -0
- data/lib/pharmaobservatory/models/target_investigators_row.rb +291 -0
- data/lib/pharmaobservatory/models/target_patent_mentions_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_programs_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_publications_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_regulatory_precedent_response.rb +3 -3
- data/lib/pharmaobservatory/models/target_trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/targets_record.rb +2 -2
- data/lib/pharmaobservatory/models/targets_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_changes_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_delivery_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_demographics_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_drug_classes_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_drugs_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_kols_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_research_payments_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_site_history_response.rb +3 -3
- data/lib/pharmaobservatory/models/trial_sites_response.rb +3 -3
- data/lib/pharmaobservatory/models/trials_record.rb +2 -2
- data/lib/pharmaobservatory/models/trials_response.rb +3 -3
- data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +3 -3
- data/lib/pharmaobservatory/models/untitled_letters_response.rb +3 -3
- data/lib/pharmaobservatory/models/warning_letters_response.rb +3 -3
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +93 -3
- metadata +188 -8
|
@@ -0,0 +1,1048 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#Read-only REST API over the Pharma Observatory biomedical data platform. Reference: https://pharmaobservatory.com/api-reference
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PharmaObservatory
|
|
17
|
+
# One row of the ownership_observations dataset: one row per ownership assertion (a filing's statement), including superseded ones. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class OwnershipObservationsRow
|
|
19
|
+
# The observation id.
|
|
20
|
+
attr_accessor :ownership_observation_id
|
|
21
|
+
|
|
22
|
+
# The id the source gave the assertion.
|
|
23
|
+
attr_accessor :source_observation_id
|
|
24
|
+
|
|
25
|
+
# The earlier observation this one amends or replaces.
|
|
26
|
+
attr_accessor :supersedes_observation_id
|
|
27
|
+
|
|
28
|
+
# The later observation that supersedes this one (the lowest when more than one claims it).
|
|
29
|
+
attr_accessor :superseded_by_observation_id
|
|
30
|
+
|
|
31
|
+
# How many later observations claim to supersede this one; above 1 is a lineage conflict kept as filed.
|
|
32
|
+
attr_accessor :superseded_by_count
|
|
33
|
+
|
|
34
|
+
# The id of the amendment thread this observation belongs to.
|
|
35
|
+
attr_accessor :supersession_chain_id
|
|
36
|
+
|
|
37
|
+
# Position in the amendment thread; 0 is the first filing.
|
|
38
|
+
attr_accessor :supersession_depth
|
|
39
|
+
|
|
40
|
+
# True when nothing supersedes this observation.
|
|
41
|
+
attr_accessor :is_chain_terminal
|
|
42
|
+
|
|
43
|
+
# True when the amendment thread was cut at 25 steps.
|
|
44
|
+
attr_accessor :chain_truncated
|
|
45
|
+
|
|
46
|
+
# The source system that made the assertion.
|
|
47
|
+
attr_accessor :source_system
|
|
48
|
+
|
|
49
|
+
# The filing family: sec_forms_3_4_5, sec_schedules_13d_g, sec_form_adv, sec_def_14a or wikidata.
|
|
50
|
+
attr_accessor :source_class
|
|
51
|
+
|
|
52
|
+
# The ownership semantic the assertion carries, from the project's controlled taxonomy.
|
|
53
|
+
attr_accessor :semantic_key
|
|
54
|
+
|
|
55
|
+
# The owner's relationship to the company as the filing family states it.
|
|
56
|
+
attr_accessor :relationship_type
|
|
57
|
+
|
|
58
|
+
# What the observation measures: economic_interest, voting_power, beneficial_ownership, investment_discretion, insider_reporting, consolidation, control or unspecified. Different dimensions are different measurements.
|
|
59
|
+
attr_accessor :ownership_dimension
|
|
60
|
+
|
|
61
|
+
# direct, indirect, mixed or unspecified.
|
|
62
|
+
attr_accessor :directness
|
|
63
|
+
|
|
64
|
+
# What the owner is: organization, natural_person, reporting_group, government or unknown.
|
|
65
|
+
attr_accessor :owner_kind
|
|
66
|
+
|
|
67
|
+
# The owned party as the source identifies it.
|
|
68
|
+
attr_accessor :subject_source_ref
|
|
69
|
+
|
|
70
|
+
# The owned company as filed.
|
|
71
|
+
attr_accessor :subject_name
|
|
72
|
+
|
|
73
|
+
# The legal entity the source resolved the owned party to, when it did.
|
|
74
|
+
attr_accessor :subject_legal_entity_id
|
|
75
|
+
|
|
76
|
+
# Company level: the subject company (null when unresolved).
|
|
77
|
+
attr_accessor :subject_company_id
|
|
78
|
+
|
|
79
|
+
# Display name of the subject company.
|
|
80
|
+
attr_accessor :subject_company_name
|
|
81
|
+
|
|
82
|
+
# Group level: the subject company's current ultimate parent; a root's group is itself.
|
|
83
|
+
attr_accessor :subject_group_id
|
|
84
|
+
|
|
85
|
+
# Display name of the subject company's group.
|
|
86
|
+
attr_accessor :subject_group_name
|
|
87
|
+
|
|
88
|
+
# Legal-entity level: the owned company's organization record.
|
|
89
|
+
attr_accessor :subject_org_id
|
|
90
|
+
|
|
91
|
+
# The investor directory key of the owned party when it is an investor.
|
|
92
|
+
attr_accessor :subject_investor_id
|
|
93
|
+
|
|
94
|
+
# How the owned party was resolved.
|
|
95
|
+
attr_accessor :subject_resolution_method
|
|
96
|
+
|
|
97
|
+
# Confidence of that resolution, 0 to 1.
|
|
98
|
+
attr_accessor :subject_resolution_confidence
|
|
99
|
+
|
|
100
|
+
# The owner as the source identifies it.
|
|
101
|
+
attr_accessor :owner_source_ref
|
|
102
|
+
|
|
103
|
+
# The owner's name as filed.
|
|
104
|
+
attr_accessor :owner_name
|
|
105
|
+
|
|
106
|
+
# The legal entity the source resolved the owner to, when it did.
|
|
107
|
+
attr_accessor :owner_legal_entity_id
|
|
108
|
+
|
|
109
|
+
# Company level: the owner company (null when unresolved).
|
|
110
|
+
attr_accessor :owner_company_id
|
|
111
|
+
|
|
112
|
+
# Display name of the owner company.
|
|
113
|
+
attr_accessor :owner_company_name
|
|
114
|
+
|
|
115
|
+
# Group level: the owner company's current ultimate parent; a root's group is itself.
|
|
116
|
+
attr_accessor :owner_group_id
|
|
117
|
+
|
|
118
|
+
# Display name of the owner company's group.
|
|
119
|
+
attr_accessor :owner_group_name
|
|
120
|
+
|
|
121
|
+
# Legal-entity level: the owner's organization record.
|
|
122
|
+
attr_accessor :owner_org_id
|
|
123
|
+
|
|
124
|
+
# The investor directory key of the owner when it is one.
|
|
125
|
+
attr_accessor :owner_investor_id
|
|
126
|
+
|
|
127
|
+
# The key of an owner who is a natural person; null for other owners.
|
|
128
|
+
attr_accessor :owner_person_id
|
|
129
|
+
|
|
130
|
+
# How the person key was linked: edgar_cik, adviser_crd, unresolved_person or not_person.
|
|
131
|
+
attr_accessor :person_link_method
|
|
132
|
+
|
|
133
|
+
# True when the owner links to more than one person key.
|
|
134
|
+
attr_accessor :person_link_conflict
|
|
135
|
+
|
|
136
|
+
# How the owner was resolved.
|
|
137
|
+
attr_accessor :owner_resolution_method
|
|
138
|
+
|
|
139
|
+
# Confidence of that resolution, 0 to 1.
|
|
140
|
+
attr_accessor :owner_resolution_confidence
|
|
141
|
+
|
|
142
|
+
# The review state of the resolution.
|
|
143
|
+
attr_accessor :review_state
|
|
144
|
+
|
|
145
|
+
# How the stake is stated: exact, range, band, explicitly_unknown, not_reported or not_applicable. No midpoint, zero or numeral is invented for a non-numeric state.
|
|
146
|
+
attr_accessor :stake_value_type
|
|
147
|
+
|
|
148
|
+
# What the percentage is a share of: economic_interest, voting_power, beneficial_ownership, control or ownership_unspecified.
|
|
149
|
+
attr_accessor :percentage_basis
|
|
150
|
+
|
|
151
|
+
# The stake as an exact percentage, 0 to 100.
|
|
152
|
+
attr_accessor :stake_percent
|
|
153
|
+
|
|
154
|
+
# The lower bound of a range or band stake, 0 to 100.
|
|
155
|
+
attr_accessor :stake_lower_percent
|
|
156
|
+
|
|
157
|
+
# The upper bound of a range or band stake, 0 to 100.
|
|
158
|
+
attr_accessor :stake_upper_percent
|
|
159
|
+
|
|
160
|
+
# Whether the lower bound is included.
|
|
161
|
+
attr_accessor :stake_lower_inclusive
|
|
162
|
+
|
|
163
|
+
# Whether the upper bound is included.
|
|
164
|
+
attr_accessor :stake_upper_inclusive
|
|
165
|
+
|
|
166
|
+
# The source's band code, when the stake is a band.
|
|
167
|
+
attr_accessor :stake_band_code
|
|
168
|
+
|
|
169
|
+
# A label for the stake that never invents a number, such as 5.5%, 5% to 10% or Not reported.
|
|
170
|
+
attr_accessor :stake_display
|
|
171
|
+
|
|
172
|
+
# The security the stake is in, as filed.
|
|
173
|
+
attr_accessor :security_title
|
|
174
|
+
|
|
175
|
+
# The number of shares, when the source states one.
|
|
176
|
+
attr_accessor :shares_amount
|
|
177
|
+
|
|
178
|
+
# The reported value, in reported_value_currency at reported_value_scale.
|
|
179
|
+
attr_accessor :reported_value_amount
|
|
180
|
+
|
|
181
|
+
# The currency of the reported value.
|
|
182
|
+
attr_accessor :reported_value_currency
|
|
183
|
+
|
|
184
|
+
# The scale of the reported value as filed.
|
|
185
|
+
attr_accessor :reported_value_scale
|
|
186
|
+
|
|
187
|
+
# The date announced.
|
|
188
|
+
attr_accessor :announced_date
|
|
189
|
+
|
|
190
|
+
# The effective date.
|
|
191
|
+
attr_accessor :effective_date
|
|
192
|
+
|
|
193
|
+
# The filing date.
|
|
194
|
+
attr_accessor :filing_date
|
|
195
|
+
|
|
196
|
+
# The as-of date of the figure.
|
|
197
|
+
attr_accessor :as_of_date
|
|
198
|
+
|
|
199
|
+
# The date the position ceased.
|
|
200
|
+
attr_accessor :ceased_date
|
|
201
|
+
|
|
202
|
+
# The sort date: the first of as_of_date, effective_date, filing_date and announced_date that is present.
|
|
203
|
+
attr_accessor :observation_date
|
|
204
|
+
|
|
205
|
+
# Which of those dates observation_date took, or unavailable.
|
|
206
|
+
attr_accessor :observation_date_basis
|
|
207
|
+
|
|
208
|
+
# The lifecycle status the source states.
|
|
209
|
+
attr_accessor :lifecycle_status
|
|
210
|
+
|
|
211
|
+
# The id of the source document.
|
|
212
|
+
attr_accessor :source_document_id
|
|
213
|
+
|
|
214
|
+
# The link to the filing.
|
|
215
|
+
attr_accessor :source_url
|
|
216
|
+
|
|
217
|
+
# A hash of the source content, for change detection.
|
|
218
|
+
attr_accessor :source_content_hash
|
|
219
|
+
|
|
220
|
+
# The quoted evidence from the source.
|
|
221
|
+
attr_accessor :evidence_quote
|
|
222
|
+
|
|
223
|
+
# The tier vocabulary is none or licensable. Every row here is none: every source behind the ledger is open, and a data test reports any other tier.
|
|
224
|
+
attr_accessor :restriction_tier
|
|
225
|
+
|
|
226
|
+
# The licence of the source.
|
|
227
|
+
attr_accessor :source_license
|
|
228
|
+
|
|
229
|
+
# Whether the source licence allows commercial use.
|
|
230
|
+
attr_accessor :commercial_use_allowed
|
|
231
|
+
|
|
232
|
+
# The source credit text for the row.
|
|
233
|
+
attr_accessor :attribution
|
|
234
|
+
|
|
235
|
+
# A tag, never a gate: true when the source row carries a natural person's data.
|
|
236
|
+
attr_accessor :contains_personal_data
|
|
237
|
+
|
|
238
|
+
# The source's own privacy classification of the row.
|
|
239
|
+
attr_accessor :privacy_status
|
|
240
|
+
|
|
241
|
+
# True when this observation is the one the current ownership edge selected.
|
|
242
|
+
attr_accessor :is_current_edge
|
|
243
|
+
|
|
244
|
+
# The state of the current edge when is_current_edge.
|
|
245
|
+
attr_accessor :current_edge_state
|
|
246
|
+
|
|
247
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
248
|
+
def self.attribute_map
|
|
249
|
+
{
|
|
250
|
+
:'ownership_observation_id' => :'ownership_observation_id',
|
|
251
|
+
:'source_observation_id' => :'source_observation_id',
|
|
252
|
+
:'supersedes_observation_id' => :'supersedes_observation_id',
|
|
253
|
+
:'superseded_by_observation_id' => :'superseded_by_observation_id',
|
|
254
|
+
:'superseded_by_count' => :'superseded_by_count',
|
|
255
|
+
:'supersession_chain_id' => :'supersession_chain_id',
|
|
256
|
+
:'supersession_depth' => :'supersession_depth',
|
|
257
|
+
:'is_chain_terminal' => :'is_chain_terminal',
|
|
258
|
+
:'chain_truncated' => :'chain_truncated',
|
|
259
|
+
:'source_system' => :'source_system',
|
|
260
|
+
:'source_class' => :'source_class',
|
|
261
|
+
:'semantic_key' => :'semantic_key',
|
|
262
|
+
:'relationship_type' => :'relationship_type',
|
|
263
|
+
:'ownership_dimension' => :'ownership_dimension',
|
|
264
|
+
:'directness' => :'directness',
|
|
265
|
+
:'owner_kind' => :'owner_kind',
|
|
266
|
+
:'subject_source_ref' => :'subject_source_ref',
|
|
267
|
+
:'subject_name' => :'subject_name',
|
|
268
|
+
:'subject_legal_entity_id' => :'subject_legal_entity_id',
|
|
269
|
+
:'subject_company_id' => :'subject_company_id',
|
|
270
|
+
:'subject_company_name' => :'subject_company_name',
|
|
271
|
+
:'subject_group_id' => :'subject_group_id',
|
|
272
|
+
:'subject_group_name' => :'subject_group_name',
|
|
273
|
+
:'subject_org_id' => :'subject_org_id',
|
|
274
|
+
:'subject_investor_id' => :'subject_investor_id',
|
|
275
|
+
:'subject_resolution_method' => :'subject_resolution_method',
|
|
276
|
+
:'subject_resolution_confidence' => :'subject_resolution_confidence',
|
|
277
|
+
:'owner_source_ref' => :'owner_source_ref',
|
|
278
|
+
:'owner_name' => :'owner_name',
|
|
279
|
+
:'owner_legal_entity_id' => :'owner_legal_entity_id',
|
|
280
|
+
:'owner_company_id' => :'owner_company_id',
|
|
281
|
+
:'owner_company_name' => :'owner_company_name',
|
|
282
|
+
:'owner_group_id' => :'owner_group_id',
|
|
283
|
+
:'owner_group_name' => :'owner_group_name',
|
|
284
|
+
:'owner_org_id' => :'owner_org_id',
|
|
285
|
+
:'owner_investor_id' => :'owner_investor_id',
|
|
286
|
+
:'owner_person_id' => :'owner_person_id',
|
|
287
|
+
:'person_link_method' => :'person_link_method',
|
|
288
|
+
:'person_link_conflict' => :'person_link_conflict',
|
|
289
|
+
:'owner_resolution_method' => :'owner_resolution_method',
|
|
290
|
+
:'owner_resolution_confidence' => :'owner_resolution_confidence',
|
|
291
|
+
:'review_state' => :'review_state',
|
|
292
|
+
:'stake_value_type' => :'stake_value_type',
|
|
293
|
+
:'percentage_basis' => :'percentage_basis',
|
|
294
|
+
:'stake_percent' => :'stake_percent',
|
|
295
|
+
:'stake_lower_percent' => :'stake_lower_percent',
|
|
296
|
+
:'stake_upper_percent' => :'stake_upper_percent',
|
|
297
|
+
:'stake_lower_inclusive' => :'stake_lower_inclusive',
|
|
298
|
+
:'stake_upper_inclusive' => :'stake_upper_inclusive',
|
|
299
|
+
:'stake_band_code' => :'stake_band_code',
|
|
300
|
+
:'stake_display' => :'stake_display',
|
|
301
|
+
:'security_title' => :'security_title',
|
|
302
|
+
:'shares_amount' => :'shares_amount',
|
|
303
|
+
:'reported_value_amount' => :'reported_value_amount',
|
|
304
|
+
:'reported_value_currency' => :'reported_value_currency',
|
|
305
|
+
:'reported_value_scale' => :'reported_value_scale',
|
|
306
|
+
:'announced_date' => :'announced_date',
|
|
307
|
+
:'effective_date' => :'effective_date',
|
|
308
|
+
:'filing_date' => :'filing_date',
|
|
309
|
+
:'as_of_date' => :'as_of_date',
|
|
310
|
+
:'ceased_date' => :'ceased_date',
|
|
311
|
+
:'observation_date' => :'observation_date',
|
|
312
|
+
:'observation_date_basis' => :'observation_date_basis',
|
|
313
|
+
:'lifecycle_status' => :'lifecycle_status',
|
|
314
|
+
:'source_document_id' => :'source_document_id',
|
|
315
|
+
:'source_url' => :'source_url',
|
|
316
|
+
:'source_content_hash' => :'source_content_hash',
|
|
317
|
+
:'evidence_quote' => :'evidence_quote',
|
|
318
|
+
:'restriction_tier' => :'restriction_tier',
|
|
319
|
+
:'source_license' => :'source_license',
|
|
320
|
+
:'commercial_use_allowed' => :'commercial_use_allowed',
|
|
321
|
+
:'attribution' => :'attribution',
|
|
322
|
+
:'contains_personal_data' => :'contains_personal_data',
|
|
323
|
+
:'privacy_status' => :'privacy_status',
|
|
324
|
+
:'is_current_edge' => :'is_current_edge',
|
|
325
|
+
:'current_edge_state' => :'current_edge_state'
|
|
326
|
+
}
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Returns attribute mapping this model knows about
|
|
330
|
+
def self.acceptable_attribute_map
|
|
331
|
+
attribute_map
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Returns all the JSON keys this model knows about
|
|
335
|
+
def self.acceptable_attributes
|
|
336
|
+
acceptable_attribute_map.values
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Attribute type mapping.
|
|
340
|
+
def self.openapi_types
|
|
341
|
+
{
|
|
342
|
+
:'ownership_observation_id' => :'String',
|
|
343
|
+
:'source_observation_id' => :'String',
|
|
344
|
+
:'supersedes_observation_id' => :'String',
|
|
345
|
+
:'superseded_by_observation_id' => :'String',
|
|
346
|
+
:'superseded_by_count' => :'Integer',
|
|
347
|
+
:'supersession_chain_id' => :'String',
|
|
348
|
+
:'supersession_depth' => :'Integer',
|
|
349
|
+
:'is_chain_terminal' => :'Boolean',
|
|
350
|
+
:'chain_truncated' => :'Boolean',
|
|
351
|
+
:'source_system' => :'String',
|
|
352
|
+
:'source_class' => :'String',
|
|
353
|
+
:'semantic_key' => :'String',
|
|
354
|
+
:'relationship_type' => :'String',
|
|
355
|
+
:'ownership_dimension' => :'String',
|
|
356
|
+
:'directness' => :'String',
|
|
357
|
+
:'owner_kind' => :'String',
|
|
358
|
+
:'subject_source_ref' => :'String',
|
|
359
|
+
:'subject_name' => :'String',
|
|
360
|
+
:'subject_legal_entity_id' => :'String',
|
|
361
|
+
:'subject_company_id' => :'String',
|
|
362
|
+
:'subject_company_name' => :'String',
|
|
363
|
+
:'subject_group_id' => :'String',
|
|
364
|
+
:'subject_group_name' => :'String',
|
|
365
|
+
:'subject_org_id' => :'String',
|
|
366
|
+
:'subject_investor_id' => :'String',
|
|
367
|
+
:'subject_resolution_method' => :'String',
|
|
368
|
+
:'subject_resolution_confidence' => :'Float',
|
|
369
|
+
:'owner_source_ref' => :'String',
|
|
370
|
+
:'owner_name' => :'String',
|
|
371
|
+
:'owner_legal_entity_id' => :'String',
|
|
372
|
+
:'owner_company_id' => :'String',
|
|
373
|
+
:'owner_company_name' => :'String',
|
|
374
|
+
:'owner_group_id' => :'String',
|
|
375
|
+
:'owner_group_name' => :'String',
|
|
376
|
+
:'owner_org_id' => :'String',
|
|
377
|
+
:'owner_investor_id' => :'String',
|
|
378
|
+
:'owner_person_id' => :'String',
|
|
379
|
+
:'person_link_method' => :'String',
|
|
380
|
+
:'person_link_conflict' => :'Boolean',
|
|
381
|
+
:'owner_resolution_method' => :'String',
|
|
382
|
+
:'owner_resolution_confidence' => :'Float',
|
|
383
|
+
:'review_state' => :'String',
|
|
384
|
+
:'stake_value_type' => :'String',
|
|
385
|
+
:'percentage_basis' => :'String',
|
|
386
|
+
:'stake_percent' => :'Float',
|
|
387
|
+
:'stake_lower_percent' => :'Float',
|
|
388
|
+
:'stake_upper_percent' => :'Float',
|
|
389
|
+
:'stake_lower_inclusive' => :'Boolean',
|
|
390
|
+
:'stake_upper_inclusive' => :'Boolean',
|
|
391
|
+
:'stake_band_code' => :'String',
|
|
392
|
+
:'stake_display' => :'String',
|
|
393
|
+
:'security_title' => :'String',
|
|
394
|
+
:'shares_amount' => :'Float',
|
|
395
|
+
:'reported_value_amount' => :'Float',
|
|
396
|
+
:'reported_value_currency' => :'String',
|
|
397
|
+
:'reported_value_scale' => :'String',
|
|
398
|
+
:'announced_date' => :'Date',
|
|
399
|
+
:'effective_date' => :'Date',
|
|
400
|
+
:'filing_date' => :'Date',
|
|
401
|
+
:'as_of_date' => :'Date',
|
|
402
|
+
:'ceased_date' => :'Date',
|
|
403
|
+
:'observation_date' => :'Date',
|
|
404
|
+
:'observation_date_basis' => :'String',
|
|
405
|
+
:'lifecycle_status' => :'String',
|
|
406
|
+
:'source_document_id' => :'String',
|
|
407
|
+
:'source_url' => :'String',
|
|
408
|
+
:'source_content_hash' => :'String',
|
|
409
|
+
:'evidence_quote' => :'String',
|
|
410
|
+
:'restriction_tier' => :'String',
|
|
411
|
+
:'source_license' => :'String',
|
|
412
|
+
:'commercial_use_allowed' => :'Boolean',
|
|
413
|
+
:'attribution' => :'String',
|
|
414
|
+
:'contains_personal_data' => :'Boolean',
|
|
415
|
+
:'privacy_status' => :'String',
|
|
416
|
+
:'is_current_edge' => :'Boolean',
|
|
417
|
+
:'current_edge_state' => :'String'
|
|
418
|
+
}
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# List of attributes with nullable: true
|
|
422
|
+
def self.openapi_nullable
|
|
423
|
+
Set.new([
|
|
424
|
+
:'ownership_observation_id',
|
|
425
|
+
:'source_observation_id',
|
|
426
|
+
:'supersedes_observation_id',
|
|
427
|
+
:'superseded_by_observation_id',
|
|
428
|
+
:'superseded_by_count',
|
|
429
|
+
:'supersession_chain_id',
|
|
430
|
+
:'supersession_depth',
|
|
431
|
+
:'is_chain_terminal',
|
|
432
|
+
:'chain_truncated',
|
|
433
|
+
:'source_system',
|
|
434
|
+
:'source_class',
|
|
435
|
+
:'semantic_key',
|
|
436
|
+
:'relationship_type',
|
|
437
|
+
:'ownership_dimension',
|
|
438
|
+
:'directness',
|
|
439
|
+
:'owner_kind',
|
|
440
|
+
:'subject_source_ref',
|
|
441
|
+
:'subject_name',
|
|
442
|
+
:'subject_legal_entity_id',
|
|
443
|
+
:'subject_company_id',
|
|
444
|
+
:'subject_company_name',
|
|
445
|
+
:'subject_group_id',
|
|
446
|
+
:'subject_group_name',
|
|
447
|
+
:'subject_org_id',
|
|
448
|
+
:'subject_investor_id',
|
|
449
|
+
:'subject_resolution_method',
|
|
450
|
+
:'subject_resolution_confidence',
|
|
451
|
+
:'owner_source_ref',
|
|
452
|
+
:'owner_name',
|
|
453
|
+
:'owner_legal_entity_id',
|
|
454
|
+
:'owner_company_id',
|
|
455
|
+
:'owner_company_name',
|
|
456
|
+
:'owner_group_id',
|
|
457
|
+
:'owner_group_name',
|
|
458
|
+
:'owner_org_id',
|
|
459
|
+
:'owner_investor_id',
|
|
460
|
+
:'owner_person_id',
|
|
461
|
+
:'person_link_method',
|
|
462
|
+
:'person_link_conflict',
|
|
463
|
+
:'owner_resolution_method',
|
|
464
|
+
:'owner_resolution_confidence',
|
|
465
|
+
:'review_state',
|
|
466
|
+
:'stake_value_type',
|
|
467
|
+
:'percentage_basis',
|
|
468
|
+
:'stake_percent',
|
|
469
|
+
:'stake_lower_percent',
|
|
470
|
+
:'stake_upper_percent',
|
|
471
|
+
:'stake_lower_inclusive',
|
|
472
|
+
:'stake_upper_inclusive',
|
|
473
|
+
:'stake_band_code',
|
|
474
|
+
:'stake_display',
|
|
475
|
+
:'security_title',
|
|
476
|
+
:'shares_amount',
|
|
477
|
+
:'reported_value_amount',
|
|
478
|
+
:'reported_value_currency',
|
|
479
|
+
:'reported_value_scale',
|
|
480
|
+
:'announced_date',
|
|
481
|
+
:'effective_date',
|
|
482
|
+
:'filing_date',
|
|
483
|
+
:'as_of_date',
|
|
484
|
+
:'ceased_date',
|
|
485
|
+
:'observation_date',
|
|
486
|
+
:'observation_date_basis',
|
|
487
|
+
:'lifecycle_status',
|
|
488
|
+
:'source_document_id',
|
|
489
|
+
:'source_url',
|
|
490
|
+
:'source_content_hash',
|
|
491
|
+
:'evidence_quote',
|
|
492
|
+
:'restriction_tier',
|
|
493
|
+
:'source_license',
|
|
494
|
+
:'commercial_use_allowed',
|
|
495
|
+
:'attribution',
|
|
496
|
+
:'contains_personal_data',
|
|
497
|
+
:'privacy_status',
|
|
498
|
+
:'is_current_edge',
|
|
499
|
+
:'current_edge_state'
|
|
500
|
+
])
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
# Initializes the object
|
|
504
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
505
|
+
def initialize(attributes = {})
|
|
506
|
+
if (!attributes.is_a?(Hash))
|
|
507
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::OwnershipObservationsRow` initialize method"
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
511
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
512
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
513
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
514
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::OwnershipObservationsRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
515
|
+
end
|
|
516
|
+
h[k.to_sym] = v
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
if attributes.key?(:'ownership_observation_id')
|
|
520
|
+
self.ownership_observation_id = attributes[:'ownership_observation_id']
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
if attributes.key?(:'source_observation_id')
|
|
524
|
+
self.source_observation_id = attributes[:'source_observation_id']
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
if attributes.key?(:'supersedes_observation_id')
|
|
528
|
+
self.supersedes_observation_id = attributes[:'supersedes_observation_id']
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
if attributes.key?(:'superseded_by_observation_id')
|
|
532
|
+
self.superseded_by_observation_id = attributes[:'superseded_by_observation_id']
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
if attributes.key?(:'superseded_by_count')
|
|
536
|
+
self.superseded_by_count = attributes[:'superseded_by_count']
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
if attributes.key?(:'supersession_chain_id')
|
|
540
|
+
self.supersession_chain_id = attributes[:'supersession_chain_id']
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
if attributes.key?(:'supersession_depth')
|
|
544
|
+
self.supersession_depth = attributes[:'supersession_depth']
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
if attributes.key?(:'is_chain_terminal')
|
|
548
|
+
self.is_chain_terminal = attributes[:'is_chain_terminal']
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
if attributes.key?(:'chain_truncated')
|
|
552
|
+
self.chain_truncated = attributes[:'chain_truncated']
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
if attributes.key?(:'source_system')
|
|
556
|
+
self.source_system = attributes[:'source_system']
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
if attributes.key?(:'source_class')
|
|
560
|
+
self.source_class = attributes[:'source_class']
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
if attributes.key?(:'semantic_key')
|
|
564
|
+
self.semantic_key = attributes[:'semantic_key']
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
if attributes.key?(:'relationship_type')
|
|
568
|
+
self.relationship_type = attributes[:'relationship_type']
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
if attributes.key?(:'ownership_dimension')
|
|
572
|
+
self.ownership_dimension = attributes[:'ownership_dimension']
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
if attributes.key?(:'directness')
|
|
576
|
+
self.directness = attributes[:'directness']
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
if attributes.key?(:'owner_kind')
|
|
580
|
+
self.owner_kind = attributes[:'owner_kind']
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
if attributes.key?(:'subject_source_ref')
|
|
584
|
+
self.subject_source_ref = attributes[:'subject_source_ref']
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
if attributes.key?(:'subject_name')
|
|
588
|
+
self.subject_name = attributes[:'subject_name']
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
if attributes.key?(:'subject_legal_entity_id')
|
|
592
|
+
self.subject_legal_entity_id = attributes[:'subject_legal_entity_id']
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
if attributes.key?(:'subject_company_id')
|
|
596
|
+
self.subject_company_id = attributes[:'subject_company_id']
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
if attributes.key?(:'subject_company_name')
|
|
600
|
+
self.subject_company_name = attributes[:'subject_company_name']
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
if attributes.key?(:'subject_group_id')
|
|
604
|
+
self.subject_group_id = attributes[:'subject_group_id']
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
if attributes.key?(:'subject_group_name')
|
|
608
|
+
self.subject_group_name = attributes[:'subject_group_name']
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
if attributes.key?(:'subject_org_id')
|
|
612
|
+
self.subject_org_id = attributes[:'subject_org_id']
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
if attributes.key?(:'subject_investor_id')
|
|
616
|
+
self.subject_investor_id = attributes[:'subject_investor_id']
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
if attributes.key?(:'subject_resolution_method')
|
|
620
|
+
self.subject_resolution_method = attributes[:'subject_resolution_method']
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
if attributes.key?(:'subject_resolution_confidence')
|
|
624
|
+
self.subject_resolution_confidence = attributes[:'subject_resolution_confidence']
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
if attributes.key?(:'owner_source_ref')
|
|
628
|
+
self.owner_source_ref = attributes[:'owner_source_ref']
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
if attributes.key?(:'owner_name')
|
|
632
|
+
self.owner_name = attributes[:'owner_name']
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
if attributes.key?(:'owner_legal_entity_id')
|
|
636
|
+
self.owner_legal_entity_id = attributes[:'owner_legal_entity_id']
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
if attributes.key?(:'owner_company_id')
|
|
640
|
+
self.owner_company_id = attributes[:'owner_company_id']
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
if attributes.key?(:'owner_company_name')
|
|
644
|
+
self.owner_company_name = attributes[:'owner_company_name']
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
if attributes.key?(:'owner_group_id')
|
|
648
|
+
self.owner_group_id = attributes[:'owner_group_id']
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
if attributes.key?(:'owner_group_name')
|
|
652
|
+
self.owner_group_name = attributes[:'owner_group_name']
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
if attributes.key?(:'owner_org_id')
|
|
656
|
+
self.owner_org_id = attributes[:'owner_org_id']
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
if attributes.key?(:'owner_investor_id')
|
|
660
|
+
self.owner_investor_id = attributes[:'owner_investor_id']
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
if attributes.key?(:'owner_person_id')
|
|
664
|
+
self.owner_person_id = attributes[:'owner_person_id']
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
if attributes.key?(:'person_link_method')
|
|
668
|
+
self.person_link_method = attributes[:'person_link_method']
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
if attributes.key?(:'person_link_conflict')
|
|
672
|
+
self.person_link_conflict = attributes[:'person_link_conflict']
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
if attributes.key?(:'owner_resolution_method')
|
|
676
|
+
self.owner_resolution_method = attributes[:'owner_resolution_method']
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
if attributes.key?(:'owner_resolution_confidence')
|
|
680
|
+
self.owner_resolution_confidence = attributes[:'owner_resolution_confidence']
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
if attributes.key?(:'review_state')
|
|
684
|
+
self.review_state = attributes[:'review_state']
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
if attributes.key?(:'stake_value_type')
|
|
688
|
+
self.stake_value_type = attributes[:'stake_value_type']
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
if attributes.key?(:'percentage_basis')
|
|
692
|
+
self.percentage_basis = attributes[:'percentage_basis']
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
if attributes.key?(:'stake_percent')
|
|
696
|
+
self.stake_percent = attributes[:'stake_percent']
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
if attributes.key?(:'stake_lower_percent')
|
|
700
|
+
self.stake_lower_percent = attributes[:'stake_lower_percent']
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
if attributes.key?(:'stake_upper_percent')
|
|
704
|
+
self.stake_upper_percent = attributes[:'stake_upper_percent']
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
if attributes.key?(:'stake_lower_inclusive')
|
|
708
|
+
self.stake_lower_inclusive = attributes[:'stake_lower_inclusive']
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
if attributes.key?(:'stake_upper_inclusive')
|
|
712
|
+
self.stake_upper_inclusive = attributes[:'stake_upper_inclusive']
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
if attributes.key?(:'stake_band_code')
|
|
716
|
+
self.stake_band_code = attributes[:'stake_band_code']
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
if attributes.key?(:'stake_display')
|
|
720
|
+
self.stake_display = attributes[:'stake_display']
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
if attributes.key?(:'security_title')
|
|
724
|
+
self.security_title = attributes[:'security_title']
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
if attributes.key?(:'shares_amount')
|
|
728
|
+
self.shares_amount = attributes[:'shares_amount']
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
if attributes.key?(:'reported_value_amount')
|
|
732
|
+
self.reported_value_amount = attributes[:'reported_value_amount']
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
if attributes.key?(:'reported_value_currency')
|
|
736
|
+
self.reported_value_currency = attributes[:'reported_value_currency']
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
if attributes.key?(:'reported_value_scale')
|
|
740
|
+
self.reported_value_scale = attributes[:'reported_value_scale']
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
if attributes.key?(:'announced_date')
|
|
744
|
+
self.announced_date = attributes[:'announced_date']
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
if attributes.key?(:'effective_date')
|
|
748
|
+
self.effective_date = attributes[:'effective_date']
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
if attributes.key?(:'filing_date')
|
|
752
|
+
self.filing_date = attributes[:'filing_date']
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
if attributes.key?(:'as_of_date')
|
|
756
|
+
self.as_of_date = attributes[:'as_of_date']
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
if attributes.key?(:'ceased_date')
|
|
760
|
+
self.ceased_date = attributes[:'ceased_date']
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
if attributes.key?(:'observation_date')
|
|
764
|
+
self.observation_date = attributes[:'observation_date']
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
if attributes.key?(:'observation_date_basis')
|
|
768
|
+
self.observation_date_basis = attributes[:'observation_date_basis']
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
if attributes.key?(:'lifecycle_status')
|
|
772
|
+
self.lifecycle_status = attributes[:'lifecycle_status']
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
if attributes.key?(:'source_document_id')
|
|
776
|
+
self.source_document_id = attributes[:'source_document_id']
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
if attributes.key?(:'source_url')
|
|
780
|
+
self.source_url = attributes[:'source_url']
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
if attributes.key?(:'source_content_hash')
|
|
784
|
+
self.source_content_hash = attributes[:'source_content_hash']
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
if attributes.key?(:'evidence_quote')
|
|
788
|
+
self.evidence_quote = attributes[:'evidence_quote']
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
if attributes.key?(:'restriction_tier')
|
|
792
|
+
self.restriction_tier = attributes[:'restriction_tier']
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
if attributes.key?(:'source_license')
|
|
796
|
+
self.source_license = attributes[:'source_license']
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
if attributes.key?(:'commercial_use_allowed')
|
|
800
|
+
self.commercial_use_allowed = attributes[:'commercial_use_allowed']
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
if attributes.key?(:'attribution')
|
|
804
|
+
self.attribution = attributes[:'attribution']
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
if attributes.key?(:'contains_personal_data')
|
|
808
|
+
self.contains_personal_data = attributes[:'contains_personal_data']
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
if attributes.key?(:'privacy_status')
|
|
812
|
+
self.privacy_status = attributes[:'privacy_status']
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
if attributes.key?(:'is_current_edge')
|
|
816
|
+
self.is_current_edge = attributes[:'is_current_edge']
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
if attributes.key?(:'current_edge_state')
|
|
820
|
+
self.current_edge_state = attributes[:'current_edge_state']
|
|
821
|
+
end
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
825
|
+
# @return Array for valid properties with the reasons
|
|
826
|
+
def list_invalid_properties
|
|
827
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
828
|
+
invalid_properties = Array.new
|
|
829
|
+
invalid_properties
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
# Check to see if the all the properties in the model are valid
|
|
833
|
+
# @return true if the model is valid
|
|
834
|
+
def valid?
|
|
835
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
836
|
+
true
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# Checks equality by comparing each attribute.
|
|
840
|
+
# @param [Object] Object to be compared
|
|
841
|
+
def ==(o)
|
|
842
|
+
return true if self.equal?(o)
|
|
843
|
+
self.class == o.class &&
|
|
844
|
+
ownership_observation_id == o.ownership_observation_id &&
|
|
845
|
+
source_observation_id == o.source_observation_id &&
|
|
846
|
+
supersedes_observation_id == o.supersedes_observation_id &&
|
|
847
|
+
superseded_by_observation_id == o.superseded_by_observation_id &&
|
|
848
|
+
superseded_by_count == o.superseded_by_count &&
|
|
849
|
+
supersession_chain_id == o.supersession_chain_id &&
|
|
850
|
+
supersession_depth == o.supersession_depth &&
|
|
851
|
+
is_chain_terminal == o.is_chain_terminal &&
|
|
852
|
+
chain_truncated == o.chain_truncated &&
|
|
853
|
+
source_system == o.source_system &&
|
|
854
|
+
source_class == o.source_class &&
|
|
855
|
+
semantic_key == o.semantic_key &&
|
|
856
|
+
relationship_type == o.relationship_type &&
|
|
857
|
+
ownership_dimension == o.ownership_dimension &&
|
|
858
|
+
directness == o.directness &&
|
|
859
|
+
owner_kind == o.owner_kind &&
|
|
860
|
+
subject_source_ref == o.subject_source_ref &&
|
|
861
|
+
subject_name == o.subject_name &&
|
|
862
|
+
subject_legal_entity_id == o.subject_legal_entity_id &&
|
|
863
|
+
subject_company_id == o.subject_company_id &&
|
|
864
|
+
subject_company_name == o.subject_company_name &&
|
|
865
|
+
subject_group_id == o.subject_group_id &&
|
|
866
|
+
subject_group_name == o.subject_group_name &&
|
|
867
|
+
subject_org_id == o.subject_org_id &&
|
|
868
|
+
subject_investor_id == o.subject_investor_id &&
|
|
869
|
+
subject_resolution_method == o.subject_resolution_method &&
|
|
870
|
+
subject_resolution_confidence == o.subject_resolution_confidence &&
|
|
871
|
+
owner_source_ref == o.owner_source_ref &&
|
|
872
|
+
owner_name == o.owner_name &&
|
|
873
|
+
owner_legal_entity_id == o.owner_legal_entity_id &&
|
|
874
|
+
owner_company_id == o.owner_company_id &&
|
|
875
|
+
owner_company_name == o.owner_company_name &&
|
|
876
|
+
owner_group_id == o.owner_group_id &&
|
|
877
|
+
owner_group_name == o.owner_group_name &&
|
|
878
|
+
owner_org_id == o.owner_org_id &&
|
|
879
|
+
owner_investor_id == o.owner_investor_id &&
|
|
880
|
+
owner_person_id == o.owner_person_id &&
|
|
881
|
+
person_link_method == o.person_link_method &&
|
|
882
|
+
person_link_conflict == o.person_link_conflict &&
|
|
883
|
+
owner_resolution_method == o.owner_resolution_method &&
|
|
884
|
+
owner_resolution_confidence == o.owner_resolution_confidence &&
|
|
885
|
+
review_state == o.review_state &&
|
|
886
|
+
stake_value_type == o.stake_value_type &&
|
|
887
|
+
percentage_basis == o.percentage_basis &&
|
|
888
|
+
stake_percent == o.stake_percent &&
|
|
889
|
+
stake_lower_percent == o.stake_lower_percent &&
|
|
890
|
+
stake_upper_percent == o.stake_upper_percent &&
|
|
891
|
+
stake_lower_inclusive == o.stake_lower_inclusive &&
|
|
892
|
+
stake_upper_inclusive == o.stake_upper_inclusive &&
|
|
893
|
+
stake_band_code == o.stake_band_code &&
|
|
894
|
+
stake_display == o.stake_display &&
|
|
895
|
+
security_title == o.security_title &&
|
|
896
|
+
shares_amount == o.shares_amount &&
|
|
897
|
+
reported_value_amount == o.reported_value_amount &&
|
|
898
|
+
reported_value_currency == o.reported_value_currency &&
|
|
899
|
+
reported_value_scale == o.reported_value_scale &&
|
|
900
|
+
announced_date == o.announced_date &&
|
|
901
|
+
effective_date == o.effective_date &&
|
|
902
|
+
filing_date == o.filing_date &&
|
|
903
|
+
as_of_date == o.as_of_date &&
|
|
904
|
+
ceased_date == o.ceased_date &&
|
|
905
|
+
observation_date == o.observation_date &&
|
|
906
|
+
observation_date_basis == o.observation_date_basis &&
|
|
907
|
+
lifecycle_status == o.lifecycle_status &&
|
|
908
|
+
source_document_id == o.source_document_id &&
|
|
909
|
+
source_url == o.source_url &&
|
|
910
|
+
source_content_hash == o.source_content_hash &&
|
|
911
|
+
evidence_quote == o.evidence_quote &&
|
|
912
|
+
restriction_tier == o.restriction_tier &&
|
|
913
|
+
source_license == o.source_license &&
|
|
914
|
+
commercial_use_allowed == o.commercial_use_allowed &&
|
|
915
|
+
attribution == o.attribution &&
|
|
916
|
+
contains_personal_data == o.contains_personal_data &&
|
|
917
|
+
privacy_status == o.privacy_status &&
|
|
918
|
+
is_current_edge == o.is_current_edge &&
|
|
919
|
+
current_edge_state == o.current_edge_state
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
# @see the `==` method
|
|
923
|
+
# @param [Object] Object to be compared
|
|
924
|
+
def eql?(o)
|
|
925
|
+
self == o
|
|
926
|
+
end
|
|
927
|
+
|
|
928
|
+
# Calculates hash code according to all attributes.
|
|
929
|
+
# @return [Integer] Hash code
|
|
930
|
+
def hash
|
|
931
|
+
[ownership_observation_id, source_observation_id, supersedes_observation_id, superseded_by_observation_id, superseded_by_count, supersession_chain_id, supersession_depth, is_chain_terminal, chain_truncated, source_system, source_class, semantic_key, relationship_type, ownership_dimension, directness, owner_kind, subject_source_ref, subject_name, subject_legal_entity_id, subject_company_id, subject_company_name, subject_group_id, subject_group_name, subject_org_id, subject_investor_id, subject_resolution_method, subject_resolution_confidence, owner_source_ref, owner_name, owner_legal_entity_id, owner_company_id, owner_company_name, owner_group_id, owner_group_name, owner_org_id, owner_investor_id, owner_person_id, person_link_method, person_link_conflict, owner_resolution_method, owner_resolution_confidence, review_state, stake_value_type, percentage_basis, stake_percent, stake_lower_percent, stake_upper_percent, stake_lower_inclusive, stake_upper_inclusive, stake_band_code, stake_display, security_title, shares_amount, reported_value_amount, reported_value_currency, reported_value_scale, announced_date, effective_date, filing_date, as_of_date, ceased_date, observation_date, observation_date_basis, lifecycle_status, source_document_id, source_url, source_content_hash, evidence_quote, restriction_tier, source_license, commercial_use_allowed, attribution, contains_personal_data, privacy_status, is_current_edge, current_edge_state].hash
|
|
932
|
+
end
|
|
933
|
+
|
|
934
|
+
# Builds the object from hash
|
|
935
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
936
|
+
# @return [Object] Returns the model itself
|
|
937
|
+
def self.build_from_hash(attributes)
|
|
938
|
+
return nil unless attributes.is_a?(Hash)
|
|
939
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
940
|
+
transformed_hash = {}
|
|
941
|
+
openapi_types.each_pair do |key, type|
|
|
942
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
943
|
+
transformed_hash["#{key}"] = nil
|
|
944
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
945
|
+
# check to ensure the input is an array given that the attribute
|
|
946
|
+
# is documented as an array but the input is not
|
|
947
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
948
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
949
|
+
end
|
|
950
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
951
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
952
|
+
end
|
|
953
|
+
end
|
|
954
|
+
new(transformed_hash)
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
# Deserializes the data based on type
|
|
958
|
+
# @param string type Data type
|
|
959
|
+
# @param string value Value to be deserialized
|
|
960
|
+
# @return [Object] Deserialized data
|
|
961
|
+
def self._deserialize(type, value)
|
|
962
|
+
case type.to_sym
|
|
963
|
+
when :Time
|
|
964
|
+
Time.parse(value)
|
|
965
|
+
when :Date
|
|
966
|
+
Date.parse(value)
|
|
967
|
+
when :String
|
|
968
|
+
value.to_s
|
|
969
|
+
when :Integer
|
|
970
|
+
value.to_i
|
|
971
|
+
when :Float
|
|
972
|
+
value.to_f
|
|
973
|
+
when :Boolean
|
|
974
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
975
|
+
true
|
|
976
|
+
else
|
|
977
|
+
false
|
|
978
|
+
end
|
|
979
|
+
when :Object
|
|
980
|
+
# generic object (usually a Hash), return directly
|
|
981
|
+
value
|
|
982
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
983
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
984
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
985
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
986
|
+
k_type = Regexp.last_match[:k_type]
|
|
987
|
+
v_type = Regexp.last_match[:v_type]
|
|
988
|
+
{}.tap do |hash|
|
|
989
|
+
value.each do |k, v|
|
|
990
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
991
|
+
end
|
|
992
|
+
end
|
|
993
|
+
else # model
|
|
994
|
+
# models (e.g. Pet) or oneOf
|
|
995
|
+
klass = PharmaObservatory.const_get(type)
|
|
996
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
997
|
+
end
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
# Returns the string representation of the object
|
|
1001
|
+
# @return [String] String presentation of the object
|
|
1002
|
+
def to_s
|
|
1003
|
+
to_hash.to_s
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
1007
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1008
|
+
def to_body
|
|
1009
|
+
to_hash
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
# Returns the object in the form of hash
|
|
1013
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1014
|
+
def to_hash
|
|
1015
|
+
hash = {}
|
|
1016
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
1017
|
+
value = self.send(attr)
|
|
1018
|
+
if value.nil?
|
|
1019
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
1020
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
hash[param] = _to_hash(value)
|
|
1024
|
+
end
|
|
1025
|
+
hash
|
|
1026
|
+
end
|
|
1027
|
+
|
|
1028
|
+
# Outputs non-array value in the form of hash
|
|
1029
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
1030
|
+
# @param [Object] value Any valid value
|
|
1031
|
+
# @return [Hash] Returns the value in the form of hash
|
|
1032
|
+
def _to_hash(value)
|
|
1033
|
+
if value.is_a?(Array)
|
|
1034
|
+
value.compact.map { |v| _to_hash(v) }
|
|
1035
|
+
elsif value.is_a?(Hash)
|
|
1036
|
+
{}.tap do |hash|
|
|
1037
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
1038
|
+
end
|
|
1039
|
+
elsif value.respond_to? :to_hash
|
|
1040
|
+
value.to_hash
|
|
1041
|
+
else
|
|
1042
|
+
value
|
|
1043
|
+
end
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
end
|