pharmaobservatory 0.1.0
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 +7 -0
- data/README.md +314 -0
- data/docs/ApiV1BaseApi.md +72 -0
- data/docs/ApiV1BiomarkerAssayScreenApi.md +87 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200Response.md +26 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseBuildState.md +22 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseEvidenceInner.md +48 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseEvidenceInnerSourceRef.md +28 -0
- data/docs/ApiV1BiomarkerAssayScreenGet200ResponseFilters.md +28 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceApi.md +87 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200Response.md +76 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseBucketCounts.md +34 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseFilters.md +26 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseGenesInner.md +38 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseLiteratureEvidenceInner.md +24 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseProfileLink.md +20 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseSupplierDeclarationsInner.md +22 -0
- data/docs/ApiV1BiomarkerAssayWhitespaceGet200ResponseValidatedEvidenceInner.md +34 -0
- data/docs/ApiV1CandidateSiteApi.md +83 -0
- data/docs/ApiV1CandidateSitesGet200Response.md +32 -0
- data/docs/ApiV1CandidateSitesGet200ResponseFilters.md +22 -0
- data/docs/ApiV1CandidateSitesGet200ResponseSitesInner.md +46 -0
- data/docs/ApiV1ConditionApi.md +211 -0
- data/docs/ApiV1ConditionsConditionIdBurdenVsEvidenceGet200Response.md +36 -0
- data/docs/ApiV1ConditionsConditionIdBurdenVsEvidenceGet200ResponseRestriction.md +22 -0
- data/docs/ApiV1ConditionsConditionIdEvidenceFreshnessGet200Response.md +26 -0
- data/docs/ApiV1ConditionsConditionIdEvidenceFreshnessGet200ResponseBuildState.md +18 -0
- data/docs/ApiV1ConditionsConditionIdEvidenceFreshnessGet200ResponseSections.md +20 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200Response.md +40 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseActiveYearSpan.md +20 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponsePhaseBreakdownInner.md +20 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollup.md +74 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupFiguresInner.md +22 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupPhasesInner.md +48 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupPredicted.md +24 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupRealized.md +22 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseRecruitmentRollupStatuses.md +32 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseSections.md +28 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseSponsorsInner.md +22 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseTrialStartForecast.md +32 -0
- data/docs/ApiV1ConditionsConditionIdSponsorLandscapeGet200ResponseTrialsByYearInner.md +20 -0
- data/docs/ApiV1EnrollmentBenchmarkApi.md +79 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200Response.md +28 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmark.md +42 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkAccrualRatePerSiteMonth.md +26 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkConfidence.md +24 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkEnrollment.md +22 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseBenchmarkTypicalDurationMonths.md +28 -0
- data/docs/ApiV1EnrollmentBenchmarkGet200ResponseFilters.md +20 -0
- data/docs/ApiV1InvestorProfileGet200Response.md +38 -0
- data/docs/ApiV1InvestorProfileGet200ResponseFunds.md +20 -0
- data/docs/ApiV1InvestorProfileGet200ResponseFundsRollupInner.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnership.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnershipHoldings.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnershipOwners.md +22 -0
- data/docs/ApiV1InvestorProfileGet200ResponseOwnershipOwnersRowsInner.md +52 -0
- data/docs/ApiV1InvestorProfileGet200ResponseProfile.md +44 -0
- data/docs/ApiV1InvestorProfileGet200ResponseResolution.md +24 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSections.md +24 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemantics.md +20 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemanticsOwnershipDimension.md +20 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemanticsSourceClass.md +18 -0
- data/docs/ApiV1InvestorProfileGet200ResponseSemanticsSourceClassSecFormAdv.md +20 -0
- data/docs/ApiV1LicensingCandidatesGet200Response.md +26 -0
- data/docs/ApiV1LicensingCandidatesGet200ResponseCandidatesInner.md +42 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200Response.md +48 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseFinancing.md +24 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseFinancingRoundsInner.md +40 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseFinancingSummary.md +38 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseInvestors.md +26 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentages.md +30 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesInsider.md +40 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesInstitutional.md +42 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesNotes.md +30 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesSharesOutstanding.md +28 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPositions.md +24 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPositionsInstitutional13f.md +22 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPositionsPositionsInner.md +50 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSections.md +36 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSemantics.md +20 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSemanticsOwnershipDimension.md +22 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseSemanticsSourceClass.md +22 -0
- data/docs/ApiV1OrgFinancingAndOwnershipGet200ResponseUnmatchedProductRevenue.md +24 -0
- data/docs/ApiV1OrgFinancingAndOwnershipOwnershipPositionsInstitutional13fHoldersInner.md +34 -0
- data/docs/ApiV1OrgPipelineStagesGet200Response.md +48 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseApprovedMarketedInner.md +30 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseInDevelopmentInner.md +34 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseRecruitmentRollup.md +74 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseRecruitmentRollupPhasesInner.md +48 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseRecruitmentRollupPredicted.md +24 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseSections.md +30 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseTrialStartForecast.md +32 -0
- data/docs/ApiV1OrgPipelineStagesGet200ResponseTrialStartForecastYearsInner.md +50 -0
- data/docs/ApiV1OwnershipApi.md +155 -0
- data/docs/ApiV1PatentCliffExposureGet200Response.md +28 -0
- data/docs/ApiV1PatentCliffExposureGet200ResponseExposuresInner.md +46 -0
- data/docs/ApiV1ProgramCatalystApi.md +291 -0
- data/docs/ApiV1ProgramCatalystsGet200Response.md +32 -0
- data/docs/ApiV1ProgramCatalystsGet200ResponseCalendarInner.md +46 -0
- data/docs/ApiV1ProgramCatalystsGet200ResponsePdufa.md +26 -0
- data/docs/ApiV1ProgramCatalystsGet200ResponseSections.md +22 -0
- data/docs/ApiV1ResolveEntityApi.md +83 -0
- data/docs/ApiV1ResolveEntityGet200Response.md +36 -0
- data/docs/ApiV1ResolveEntityGet200ResponseCandidatesInner.md +26 -0
- data/docs/ApiV1ResolveEntityGet200ResponseCandidatesInnerRestriction.md +22 -0
- data/docs/ApiV1ResolveEntityGet200ResponseResolutionConfidence.md +20 -0
- data/docs/ApiV1RwdApi.md +153 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200Response.md +42 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseConductor.md +28 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandate.md +22 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandateAll.md +52 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandateMandated.md +52 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseDeliveryByMandateVoluntary.md +52 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseFootprint.md +20 -0
- data/docs/ApiV1RwdConductorTrackRecordGet200ResponseFootprintDeliveredCountriesInner.md +20 -0
- data/docs/ApiV1RwdStudyScreenGet200Response.md +34 -0
- data/docs/ApiV1RwdStudyScreenGet200ResponseDeliveryDistribution.md +34 -0
- data/docs/ApiV1RwdStudyScreenGet200ResponseFilters.md +24 -0
- data/docs/ApiV1SiteRecordApi.md +83 -0
- data/docs/ApiV1SiteRecordGet200Response.md +36 -0
- data/docs/ApiV1SiteRecordGet200ResponseDetailSections.md +26 -0
- data/docs/ApiV1SiteRecordGet200ResponseDetailSectionsTrials.md +20 -0
- data/docs/ApiV1SiteRecordGet200ResponseSiteKeyRedirect.md +20 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInner.md +46 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerActiveYears.md +20 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerDrugsInner.md +22 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerEstimatedEnrollment.md +22 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerIndicationsInner.md +22 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerInvestigatorsInner.md +26 -0
- data/docs/ApiV1SiteRecordGet200ResponseSitesInnerTrialsInner.md +24 -0
- data/docs/ApiV1SponsorLandscapeRecruitmentRollupPredictedAtHorizonCap.md +22 -0
- data/docs/ApiV1SponsorLandscapeRecruitmentRollupStatusCountsInner.md +22 -0
- data/docs/ApiV1TrialApi.md +363 -0
- data/docs/ApiV1TrialsDiscontinuationReasonsGet200Response.md +34 -0
- data/docs/ApiV1TrialsDiscontinuationReasonsGet200ResponseFilters.md +20 -0
- data/docs/ApiV1TrialsDiscontinuationReasonsGet200ResponseTrialsInner.md +28 -0
- data/docs/ApiV1TrialsEligibilityGeneralizabilityScanGet200Response.md +32 -0
- data/docs/ApiV1TrialsEligibilityGeneralizabilityScanGet200ResponseFilters.md +18 -0
- data/docs/ApiV1TrialsEligibilityGeneralizabilityScanGet200ResponseTrialsInner.md +32 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200Response.md +36 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInner.md +54 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerBaseline.md +24 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerFigure.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerInputsAsRegistered.md +38 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerMeasuredError.md +26 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerMeasuredErrorPhase.md +34 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerMeasuredErrorSize.md +34 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsInnerReason.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponsePredictionsStatus.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistory.md +36 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryChangesInner.md +24 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInner.md +32 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInnerEnrollment.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInnerSites.md +32 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseRecordHistoryObservationsInnerStartDate.md +28 -0
- data/docs/ApiV1TrialsHistoryAndPredictionGet200ResponseSections.md +26 -0
- data/docs/ApiV1TrialsHistoryPredictionsInnerRegisteredPrimaryCompletion.md +22 -0
- data/docs/ApiV1TrialsHistoryRecordHistoryObservationsInnerOverallStatus.md +24 -0
- data/docs/ApiV1TrialsRecordsGet200Response.md +28 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseBuildState.md +22 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseExtractionCoverage.md +32 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseSections.md +20 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseSectionsExtracted.md +22 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInner.md +114 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInnerExtracted.md +46 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInnerLinkedDrugsInner.md +28 -0
- data/docs/ApiV1TrialsRecordsGet200ResponseTrialsInnerLinkedDrugsInnerBrandsInner.md +20 -0
- data/docs/ApiV1TrialsReportingCompletenessGet200Response.md +32 -0
- data/docs/ApiV1TrialsReportingCompletenessGet200ResponseDemographicFieldPopulationRate.md +24 -0
- data/docs/ApiV1WhoamiGet200Response.md +22 -0
- data/docs/AuthError.md +18 -0
- data/docs/NotEntitledError.md +24 -0
- data/lib/pharmaobservatory/api/api_v1_base_api.rb +77 -0
- data/lib/pharmaobservatory/api/api_v1_biomarker_assay_screen_api.rb +95 -0
- data/lib/pharmaobservatory/api/api_v1_biomarker_assay_whitespace_api.rb +95 -0
- data/lib/pharmaobservatory/api/api_v1_candidate_site_api.rb +89 -0
- data/lib/pharmaobservatory/api/api_v1_condition_api.rb +205 -0
- data/lib/pharmaobservatory/api/api_v1_enrollment_benchmark_api.rb +83 -0
- data/lib/pharmaobservatory/api/api_v1_ownership_api.rb +150 -0
- data/lib/pharmaobservatory/api/api_v1_program_catalyst_api.rb +260 -0
- data/lib/pharmaobservatory/api/api_v1_resolve_entity_api.rb +89 -0
- data/lib/pharmaobservatory/api/api_v1_rwd_api.rb +147 -0
- data/lib/pharmaobservatory/api/api_v1_site_record_api.rb +89 -0
- data/lib/pharmaobservatory/api/api_v1_trial_api.rb +321 -0
- data/lib/pharmaobservatory/api_client.rb +437 -0
- data/lib/pharmaobservatory/api_error.rb +58 -0
- data/lib/pharmaobservatory/configuration.rb +393 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_build_state.rb +275 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_evidence_inner.rb +507 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_evidence_inner_source_ref.rb +369 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_screen_get200_response_filters.rb +283 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response.rb +525 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_bucket_counts.rb +445 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_filters.rb +285 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_genes_inner.rb +469 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_literature_evidence_inner.rb +317 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_profile_link.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_supplier_declarations_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_biomarker_assay_whitespace_get200_response_validated_evidence_inner.rb +431 -0
- data/lib/pharmaobservatory/models/api_v1_candidate_sites_get200_response.rb +302 -0
- data/lib/pharmaobservatory/models/api_v1_candidate_sites_get200_response_filters.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_candidate_sites_get200_response_sites_inner.rb +573 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_burden_vs_evidence_get200_response.rb +471 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_burden_vs_evidence_get200_response_restriction.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_evidence_freshness_get200_response.rb +327 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_evidence_freshness_get200_response_build_state.rb +237 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_evidence_freshness_get200_response_sections.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response.rb +398 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_active_year_span.rb +235 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_phase_breakdown_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup.rb +954 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_figures_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_phases_inner.rb +512 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_predicted.rb +259 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_realized.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_recruitment_rollup_statuses.rb +419 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_sections.rb +299 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_sponsors_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_trial_start_forecast.rb +421 -0
- data/lib/pharmaobservatory/models/api_v1_conditions_condition_id_sponsor_landscape_get200_response_trials_by_year_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response.rb +282 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark.rb +549 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_accrual_rate_per_site_month.rb +341 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_confidence.rb +301 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_enrollment.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_benchmark_typical_duration_months.rb +367 -0
- data/lib/pharmaobservatory/models/api_v1_enrollment_benchmark_get200_response_filters.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response.rb +401 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_funds.rb +265 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_funds_rollup_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership_holdings.rb +291 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership_owners.rb +291 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_ownership_owners_rows_inner.rb +595 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_profile.rb +561 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_resolution.rb +303 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_sections.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics_ownership_dimension.rb +229 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics_source_class.rb +220 -0
- data/lib/pharmaobservatory/models/api_v1_investor_profile_get200_response_semantics_source_class_sec_form_adv.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_licensing_candidates_get200_response.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_licensing_candidates_get200_response_candidates_inner.rb +549 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response.rb +481 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_financing.rb +303 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_financing_rounds_inner.rb +509 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_financing_summary.rb +497 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_investors.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages.rb +365 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_insider.rb +453 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_institutional.rb +437 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_notes.rb +393 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_percentages_shares_outstanding.rb +339 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_positions.rb +317 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_positions_institutional13f.rb +291 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_ownership_positions_positions_inner.rb +597 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_sections.rb +403 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_semantics.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_semantics_ownership_dimension.rb +238 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_semantics_source_class.rb +238 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_unmatched_product_revenue.rb +301 -0
- data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_ownership_positions_institutional13f_holders_inner.rb +417 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response.rb +449 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_approved_marketed_inner.rb +393 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_in_development_inner.rb +445 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_recruitment_rollup.rb +940 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_recruitment_rollup_phases_inner.rb +512 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_recruitment_rollup_predicted.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_sections.rb +325 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_trial_start_forecast.rb +421 -0
- data/lib/pharmaobservatory/models/api_v1_org_pipeline_stages_get200_response_trial_start_forecast_years_inner.rb +611 -0
- data/lib/pharmaobservatory/models/api_v1_patent_cliff_exposure_get200_response.rb +339 -0
- data/lib/pharmaobservatory/models/api_v1_patent_cliff_exposure_get200_response_exposures_inner.rb +531 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response.rb +377 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response_calendar_inner.rb +429 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response_pdufa.rb +324 -0
- data/lib/pharmaobservatory/models/api_v1_program_catalysts_get200_response_sections.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response.rb +383 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response_candidates_inner.rb +283 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response_candidates_inner_restriction.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_resolve_entity_get200_response_resolution_confidence.rb +249 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response.rb +467 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_conductor.rb +371 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate.rb +272 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate_all.rb +595 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate_mandated.rb +609 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_delivery_by_mandate_voluntary.rb +665 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_footprint.rb +267 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_conductor_track_record_get200_response_footprint_delivered_countries_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_study_screen_get200_response.rb +387 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_study_screen_get200_response_delivery_distribution.rb +403 -0
- data/lib/pharmaobservatory/models/api_v1_rwd_study_screen_get200_response_filters.rb +259 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response.rb +320 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_detail_sections.rb +341 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_detail_sections_trials.rb +265 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_site_key_redirect.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner.rb +477 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_active_years.rb +235 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_drugs_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_estimated_enrollment.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_indications_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_investigators_inner.rb +327 -0
- data/lib/pharmaobservatory/models/api_v1_site_record_get200_response_sites_inner_trials_inner.rb +301 -0
- data/lib/pharmaobservatory/models/api_v1_sponsor_landscape_recruitment_rollup_predicted_at_horizon_cap.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_sponsor_landscape_recruitment_rollup_status_counts_inner.rb +289 -0
- data/lib/pharmaobservatory/models/api_v1_trials_discontinuation_reasons_get200_response.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_discontinuation_reasons_get200_response_filters.rb +265 -0
- data/lib/pharmaobservatory/models/api_v1_trials_discontinuation_reasons_get200_response_trials_inner.rb +353 -0
- data/lib/pharmaobservatory/models/api_v1_trials_eligibility_generalizability_scan_get200_response.rb +302 -0
- data/lib/pharmaobservatory/models/api_v1_trials_eligibility_generalizability_scan_get200_response_filters.rb +237 -0
- data/lib/pharmaobservatory/models/api_v1_trials_eligibility_generalizability_scan_get200_response_trials_inner.rb +351 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response.rb +340 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner.rb +579 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_baseline.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_figure.rb +367 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_inputs_as_registered.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_measured_error.rb +299 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_measured_error_phase.rb +361 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_measured_error_size.rb +375 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_inner_reason.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_predictions_status.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history.rb +433 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_changes_inner.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner.rb +419 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner_enrollment.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner_sites.rb +321 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_record_history_observations_inner_start_date.rb +311 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_and_prediction_get200_response_sections.rb +273 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_predictions_inner_registered_primary_completion.rb +261 -0
- data/lib/pharmaobservatory/models/api_v1_trials_history_record_history_observations_inner_overall_status.rb +287 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response.rb +339 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_build_state.rb +256 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_extraction_coverage.rb +300 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_sections.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_sections_extracted.rb +275 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner.rb +1189 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner_extracted.rb +382 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner_linked_drugs_inner.rb +343 -0
- data/lib/pharmaobservatory/models/api_v1_trials_records_get200_response_trials_inner_linked_drugs_inner_brands_inner.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_trials_reporting_completeness_get200_response.rb +300 -0
- data/lib/pharmaobservatory/models/api_v1_trials_reporting_completeness_get200_response_demographic_field_population_rate.rb +315 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response.rb +291 -0
- data/lib/pharmaobservatory/models/auth_error.rb +237 -0
- data/lib/pharmaobservatory/models/not_entitled_error.rb +315 -0
- data/lib/pharmaobservatory/version.rb +15 -0
- data/lib/pharmaobservatory.rb +209 -0
- metadata +461 -0
data/lib/pharmaobservatory/models/api_v1_org_financing_and_ownership_get200_response_investors.rb
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
class ApiV1OrgFinancingAndOwnershipGet200ResponseInvestors
|
|
18
|
+
attr_accessor :identified
|
|
19
|
+
|
|
20
|
+
attr_accessor :identified_total
|
|
21
|
+
|
|
22
|
+
attr_accessor :identified_truncated
|
|
23
|
+
|
|
24
|
+
attr_accessor :round_participation_available
|
|
25
|
+
|
|
26
|
+
attr_accessor :round_participation_note
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'identified' => :'identified',
|
|
32
|
+
:'identified_total' => :'identified_total',
|
|
33
|
+
:'identified_truncated' => :'identified_truncated',
|
|
34
|
+
:'round_participation_available' => :'round_participation_available',
|
|
35
|
+
:'round_participation_note' => :'round_participation_note'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns attribute mapping this model knows about
|
|
40
|
+
def self.acceptable_attribute_map
|
|
41
|
+
attribute_map
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Returns all the JSON keys this model knows about
|
|
45
|
+
def self.acceptable_attributes
|
|
46
|
+
acceptable_attribute_map.values
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
def self.openapi_types
|
|
51
|
+
{
|
|
52
|
+
:'identified' => :'Array<Object>',
|
|
53
|
+
:'identified_total' => :'Integer',
|
|
54
|
+
:'identified_truncated' => :'Boolean',
|
|
55
|
+
:'round_participation_available' => :'Boolean',
|
|
56
|
+
:'round_participation_note' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ApiV1OrgFinancingAndOwnershipGet200ResponseInvestors` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ApiV1OrgFinancingAndOwnershipGet200ResponseInvestors`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
|
+
end
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'identified')
|
|
83
|
+
if (value = attributes[:'identified']).is_a?(Array)
|
|
84
|
+
self.identified = value
|
|
85
|
+
end
|
|
86
|
+
else
|
|
87
|
+
self.identified = nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'identified_total')
|
|
91
|
+
self.identified_total = attributes[:'identified_total']
|
|
92
|
+
else
|
|
93
|
+
self.identified_total = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'identified_truncated')
|
|
97
|
+
self.identified_truncated = attributes[:'identified_truncated']
|
|
98
|
+
else
|
|
99
|
+
self.identified_truncated = nil
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'round_participation_available')
|
|
103
|
+
self.round_participation_available = attributes[:'round_participation_available']
|
|
104
|
+
else
|
|
105
|
+
self.round_participation_available = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'round_participation_note')
|
|
109
|
+
self.round_participation_note = attributes[:'round_participation_note']
|
|
110
|
+
else
|
|
111
|
+
self.round_participation_note = nil
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
116
|
+
# @return Array for valid properties with the reasons
|
|
117
|
+
def list_invalid_properties
|
|
118
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
119
|
+
invalid_properties = Array.new
|
|
120
|
+
if @identified.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "identified", identified cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @identified_total.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "identified_total", identified_total cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @identified_truncated.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "identified_truncated", identified_truncated cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @round_participation_available.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "round_participation_available", round_participation_available cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @round_participation_note.nil?
|
|
137
|
+
invalid_properties.push('invalid value for "round_participation_note", round_participation_note cannot be nil.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
invalid_properties
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Check to see if the all the properties in the model are valid
|
|
144
|
+
# @return true if the model is valid
|
|
145
|
+
def valid?
|
|
146
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
147
|
+
return false if @identified.nil?
|
|
148
|
+
return false if @identified_total.nil?
|
|
149
|
+
return false if @identified_truncated.nil?
|
|
150
|
+
return false if @round_participation_available.nil?
|
|
151
|
+
return false if @round_participation_note.nil?
|
|
152
|
+
true
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Custom attribute writer method with validation
|
|
156
|
+
# @param [Object] identified Value to be assigned
|
|
157
|
+
def identified=(identified)
|
|
158
|
+
if identified.nil?
|
|
159
|
+
fail ArgumentError, 'identified cannot be nil'
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
@identified = identified
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Custom attribute writer method with validation
|
|
166
|
+
# @param [Object] identified_total Value to be assigned
|
|
167
|
+
def identified_total=(identified_total)
|
|
168
|
+
if identified_total.nil?
|
|
169
|
+
fail ArgumentError, 'identified_total cannot be nil'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
@identified_total = identified_total
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Custom attribute writer method with validation
|
|
176
|
+
# @param [Object] identified_truncated Value to be assigned
|
|
177
|
+
def identified_truncated=(identified_truncated)
|
|
178
|
+
if identified_truncated.nil?
|
|
179
|
+
fail ArgumentError, 'identified_truncated cannot be nil'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
@identified_truncated = identified_truncated
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Custom attribute writer method with validation
|
|
186
|
+
# @param [Object] round_participation_available Value to be assigned
|
|
187
|
+
def round_participation_available=(round_participation_available)
|
|
188
|
+
if round_participation_available.nil?
|
|
189
|
+
fail ArgumentError, 'round_participation_available cannot be nil'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
@round_participation_available = round_participation_available
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Custom attribute writer method with validation
|
|
196
|
+
# @param [Object] round_participation_note Value to be assigned
|
|
197
|
+
def round_participation_note=(round_participation_note)
|
|
198
|
+
if round_participation_note.nil?
|
|
199
|
+
fail ArgumentError, 'round_participation_note cannot be nil'
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
@round_participation_note = round_participation_note
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Checks equality by comparing each attribute.
|
|
206
|
+
# @param [Object] Object to be compared
|
|
207
|
+
def ==(o)
|
|
208
|
+
return true if self.equal?(o)
|
|
209
|
+
self.class == o.class &&
|
|
210
|
+
identified == o.identified &&
|
|
211
|
+
identified_total == o.identified_total &&
|
|
212
|
+
identified_truncated == o.identified_truncated &&
|
|
213
|
+
round_participation_available == o.round_participation_available &&
|
|
214
|
+
round_participation_note == o.round_participation_note
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# @see the `==` method
|
|
218
|
+
# @param [Object] Object to be compared
|
|
219
|
+
def eql?(o)
|
|
220
|
+
self == o
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Calculates hash code according to all attributes.
|
|
224
|
+
# @return [Integer] Hash code
|
|
225
|
+
def hash
|
|
226
|
+
[identified, identified_total, identified_truncated, round_participation_available, round_participation_note].hash
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Builds the object from hash
|
|
230
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
231
|
+
# @return [Object] Returns the model itself
|
|
232
|
+
def self.build_from_hash(attributes)
|
|
233
|
+
return nil unless attributes.is_a?(Hash)
|
|
234
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
235
|
+
transformed_hash = {}
|
|
236
|
+
openapi_types.each_pair do |key, type|
|
|
237
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
238
|
+
transformed_hash["#{key}"] = nil
|
|
239
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
240
|
+
# check to ensure the input is an array given that the attribute
|
|
241
|
+
# is documented as an array but the input is not
|
|
242
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
243
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
244
|
+
end
|
|
245
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
246
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
new(transformed_hash)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Deserializes the data based on type
|
|
253
|
+
# @param string type Data type
|
|
254
|
+
# @param string value Value to be deserialized
|
|
255
|
+
# @return [Object] Deserialized data
|
|
256
|
+
def self._deserialize(type, value)
|
|
257
|
+
case type.to_sym
|
|
258
|
+
when :Time
|
|
259
|
+
Time.parse(value)
|
|
260
|
+
when :Date
|
|
261
|
+
Date.parse(value)
|
|
262
|
+
when :String
|
|
263
|
+
value.to_s
|
|
264
|
+
when :Integer
|
|
265
|
+
value.to_i
|
|
266
|
+
when :Float
|
|
267
|
+
value.to_f
|
|
268
|
+
when :Boolean
|
|
269
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
270
|
+
true
|
|
271
|
+
else
|
|
272
|
+
false
|
|
273
|
+
end
|
|
274
|
+
when :Object
|
|
275
|
+
# generic object (usually a Hash), return directly
|
|
276
|
+
value
|
|
277
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
278
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
279
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
280
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
281
|
+
k_type = Regexp.last_match[:k_type]
|
|
282
|
+
v_type = Regexp.last_match[:v_type]
|
|
283
|
+
{}.tap do |hash|
|
|
284
|
+
value.each do |k, v|
|
|
285
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
else # model
|
|
289
|
+
# models (e.g. Pet) or oneOf
|
|
290
|
+
klass = PharmaObservatory.const_get(type)
|
|
291
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Returns the string representation of the object
|
|
296
|
+
# @return [String] String presentation of the object
|
|
297
|
+
def to_s
|
|
298
|
+
to_hash.to_s
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
302
|
+
# @return [Hash] Returns the object in the form of hash
|
|
303
|
+
def to_body
|
|
304
|
+
to_hash
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Returns the object in the form of hash
|
|
308
|
+
# @return [Hash] Returns the object in the form of hash
|
|
309
|
+
def to_hash
|
|
310
|
+
hash = {}
|
|
311
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
312
|
+
value = self.send(attr)
|
|
313
|
+
if value.nil?
|
|
314
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
315
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
hash[param] = _to_hash(value)
|
|
319
|
+
end
|
|
320
|
+
hash
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Outputs non-array value in the form of hash
|
|
324
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
325
|
+
# @param [Object] value Any valid value
|
|
326
|
+
# @return [Hash] Returns the value in the form of hash
|
|
327
|
+
def _to_hash(value)
|
|
328
|
+
if value.is_a?(Array)
|
|
329
|
+
value.compact.map { |v| _to_hash(v) }
|
|
330
|
+
elsif value.is_a?(Hash)
|
|
331
|
+
{}.tap do |hash|
|
|
332
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
333
|
+
end
|
|
334
|
+
elsif value.respond_to? :to_hash
|
|
335
|
+
value.to_hash
|
|
336
|
+
else
|
|
337
|
+
value
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
end
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
class ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentages
|
|
18
|
+
attr_accessor :org_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :requested_org_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :any
|
|
23
|
+
|
|
24
|
+
attr_accessor :shares_outstanding
|
|
25
|
+
|
|
26
|
+
attr_accessor :insider
|
|
27
|
+
|
|
28
|
+
attr_accessor :institutional
|
|
29
|
+
|
|
30
|
+
attr_accessor :notes
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'org_id' => :'org_id',
|
|
36
|
+
:'requested_org_id' => :'requested_org_id',
|
|
37
|
+
:'any' => :'any',
|
|
38
|
+
:'shares_outstanding' => :'shares_outstanding',
|
|
39
|
+
:'insider' => :'insider',
|
|
40
|
+
:'institutional' => :'institutional',
|
|
41
|
+
:'notes' => :'notes'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns attribute mapping this model knows about
|
|
46
|
+
def self.acceptable_attribute_map
|
|
47
|
+
attribute_map
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Returns all the JSON keys this model knows about
|
|
51
|
+
def self.acceptable_attributes
|
|
52
|
+
acceptable_attribute_map.values
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute type mapping.
|
|
56
|
+
def self.openapi_types
|
|
57
|
+
{
|
|
58
|
+
:'org_id' => :'String',
|
|
59
|
+
:'requested_org_id' => :'String',
|
|
60
|
+
:'any' => :'Boolean',
|
|
61
|
+
:'shares_outstanding' => :'ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesSharesOutstanding',
|
|
62
|
+
:'insider' => :'ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesInsider',
|
|
63
|
+
:'institutional' => :'ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesInstitutional',
|
|
64
|
+
:'notes' => :'ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentagesNotes'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# List of attributes with nullable: true
|
|
69
|
+
def self.openapi_nullable
|
|
70
|
+
Set.new([
|
|
71
|
+
:'org_id',
|
|
72
|
+
:'requested_org_id',
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentages` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ApiV1OrgFinancingAndOwnershipGet200ResponseOwnershipPercentages`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'org_id')
|
|
93
|
+
self.org_id = attributes[:'org_id']
|
|
94
|
+
else
|
|
95
|
+
self.org_id = nil
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'requested_org_id')
|
|
99
|
+
self.requested_org_id = attributes[:'requested_org_id']
|
|
100
|
+
else
|
|
101
|
+
self.requested_org_id = nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'any')
|
|
105
|
+
self.any = attributes[:'any']
|
|
106
|
+
else
|
|
107
|
+
self.any = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'shares_outstanding')
|
|
111
|
+
self.shares_outstanding = attributes[:'shares_outstanding']
|
|
112
|
+
else
|
|
113
|
+
self.shares_outstanding = nil
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'insider')
|
|
117
|
+
self.insider = attributes[:'insider']
|
|
118
|
+
else
|
|
119
|
+
self.insider = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'institutional')
|
|
123
|
+
self.institutional = attributes[:'institutional']
|
|
124
|
+
else
|
|
125
|
+
self.institutional = nil
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'notes')
|
|
129
|
+
self.notes = attributes[:'notes']
|
|
130
|
+
else
|
|
131
|
+
self.notes = nil
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
136
|
+
# @return Array for valid properties with the reasons
|
|
137
|
+
def list_invalid_properties
|
|
138
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
139
|
+
invalid_properties = Array.new
|
|
140
|
+
if @any.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "any", any cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if @shares_outstanding.nil?
|
|
145
|
+
invalid_properties.push('invalid value for "shares_outstanding", shares_outstanding cannot be nil.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if @insider.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "insider", insider cannot be nil.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if @institutional.nil?
|
|
153
|
+
invalid_properties.push('invalid value for "institutional", institutional cannot be nil.')
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if @notes.nil?
|
|
157
|
+
invalid_properties.push('invalid value for "notes", notes cannot be nil.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
invalid_properties
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Check to see if the all the properties in the model are valid
|
|
164
|
+
# @return true if the model is valid
|
|
165
|
+
def valid?
|
|
166
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
167
|
+
return false if @any.nil?
|
|
168
|
+
return false if @shares_outstanding.nil?
|
|
169
|
+
return false if @insider.nil?
|
|
170
|
+
return false if @institutional.nil?
|
|
171
|
+
return false if @notes.nil?
|
|
172
|
+
true
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Custom attribute writer method with validation
|
|
176
|
+
# @param [Object] any Value to be assigned
|
|
177
|
+
def any=(any)
|
|
178
|
+
if any.nil?
|
|
179
|
+
fail ArgumentError, 'any cannot be nil'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
@any = any
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Custom attribute writer method with validation
|
|
186
|
+
# @param [Object] shares_outstanding Value to be assigned
|
|
187
|
+
def shares_outstanding=(shares_outstanding)
|
|
188
|
+
if shares_outstanding.nil?
|
|
189
|
+
fail ArgumentError, 'shares_outstanding cannot be nil'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
@shares_outstanding = shares_outstanding
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Custom attribute writer method with validation
|
|
196
|
+
# @param [Object] insider Value to be assigned
|
|
197
|
+
def insider=(insider)
|
|
198
|
+
if insider.nil?
|
|
199
|
+
fail ArgumentError, 'insider cannot be nil'
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
@insider = insider
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Custom attribute writer method with validation
|
|
206
|
+
# @param [Object] institutional Value to be assigned
|
|
207
|
+
def institutional=(institutional)
|
|
208
|
+
if institutional.nil?
|
|
209
|
+
fail ArgumentError, 'institutional cannot be nil'
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
@institutional = institutional
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Custom attribute writer method with validation
|
|
216
|
+
# @param [Object] notes Value to be assigned
|
|
217
|
+
def notes=(notes)
|
|
218
|
+
if notes.nil?
|
|
219
|
+
fail ArgumentError, 'notes cannot be nil'
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
@notes = notes
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Checks equality by comparing each attribute.
|
|
226
|
+
# @param [Object] Object to be compared
|
|
227
|
+
def ==(o)
|
|
228
|
+
return true if self.equal?(o)
|
|
229
|
+
self.class == o.class &&
|
|
230
|
+
org_id == o.org_id &&
|
|
231
|
+
requested_org_id == o.requested_org_id &&
|
|
232
|
+
any == o.any &&
|
|
233
|
+
shares_outstanding == o.shares_outstanding &&
|
|
234
|
+
insider == o.insider &&
|
|
235
|
+
institutional == o.institutional &&
|
|
236
|
+
notes == o.notes
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# @see the `==` method
|
|
240
|
+
# @param [Object] Object to be compared
|
|
241
|
+
def eql?(o)
|
|
242
|
+
self == o
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Calculates hash code according to all attributes.
|
|
246
|
+
# @return [Integer] Hash code
|
|
247
|
+
def hash
|
|
248
|
+
[org_id, requested_org_id, any, shares_outstanding, insider, institutional, notes].hash
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Builds the object from hash
|
|
252
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
253
|
+
# @return [Object] Returns the model itself
|
|
254
|
+
def self.build_from_hash(attributes)
|
|
255
|
+
return nil unless attributes.is_a?(Hash)
|
|
256
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
257
|
+
transformed_hash = {}
|
|
258
|
+
openapi_types.each_pair do |key, type|
|
|
259
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
260
|
+
transformed_hash["#{key}"] = nil
|
|
261
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
262
|
+
# check to ensure the input is an array given that the attribute
|
|
263
|
+
# is documented as an array but the input is not
|
|
264
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
265
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
266
|
+
end
|
|
267
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
268
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
new(transformed_hash)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Deserializes the data based on type
|
|
275
|
+
# @param string type Data type
|
|
276
|
+
# @param string value Value to be deserialized
|
|
277
|
+
# @return [Object] Deserialized data
|
|
278
|
+
def self._deserialize(type, value)
|
|
279
|
+
case type.to_sym
|
|
280
|
+
when :Time
|
|
281
|
+
Time.parse(value)
|
|
282
|
+
when :Date
|
|
283
|
+
Date.parse(value)
|
|
284
|
+
when :String
|
|
285
|
+
value.to_s
|
|
286
|
+
when :Integer
|
|
287
|
+
value.to_i
|
|
288
|
+
when :Float
|
|
289
|
+
value.to_f
|
|
290
|
+
when :Boolean
|
|
291
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
292
|
+
true
|
|
293
|
+
else
|
|
294
|
+
false
|
|
295
|
+
end
|
|
296
|
+
when :Object
|
|
297
|
+
# generic object (usually a Hash), return directly
|
|
298
|
+
value
|
|
299
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
300
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
301
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
302
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
303
|
+
k_type = Regexp.last_match[:k_type]
|
|
304
|
+
v_type = Regexp.last_match[:v_type]
|
|
305
|
+
{}.tap do |hash|
|
|
306
|
+
value.each do |k, v|
|
|
307
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
else # model
|
|
311
|
+
# models (e.g. Pet) or oneOf
|
|
312
|
+
klass = PharmaObservatory.const_get(type)
|
|
313
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Returns the string representation of the object
|
|
318
|
+
# @return [String] String presentation of the object
|
|
319
|
+
def to_s
|
|
320
|
+
to_hash.to_s
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
324
|
+
# @return [Hash] Returns the object in the form of hash
|
|
325
|
+
def to_body
|
|
326
|
+
to_hash
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Returns the object in the form of hash
|
|
330
|
+
# @return [Hash] Returns the object in the form of hash
|
|
331
|
+
def to_hash
|
|
332
|
+
hash = {}
|
|
333
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
334
|
+
value = self.send(attr)
|
|
335
|
+
if value.nil?
|
|
336
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
337
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
hash[param] = _to_hash(value)
|
|
341
|
+
end
|
|
342
|
+
hash
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Outputs non-array value in the form of hash
|
|
346
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
347
|
+
# @param [Object] value Any valid value
|
|
348
|
+
# @return [Hash] Returns the value in the form of hash
|
|
349
|
+
def _to_hash(value)
|
|
350
|
+
if value.is_a?(Array)
|
|
351
|
+
value.compact.map { |v| _to_hash(v) }
|
|
352
|
+
elsif value.is_a?(Hash)
|
|
353
|
+
{}.tap do |hash|
|
|
354
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
355
|
+
end
|
|
356
|
+
elsif value.respond_to? :to_hash
|
|
357
|
+
value.to_hash
|
|
358
|
+
else
|
|
359
|
+
value
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
end
|