pharmaobservatory 0.1.3 → 0.1.4
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 +101 -4
- data/docs/BiomarkerBqpAssertionsRow.md +1 -1
- data/docs/BiomarkerEvidenceRow.md +1 -1
- data/docs/BiomarkerLiteratureRow.md +1 -1
- data/docs/BiomarkerRelationsResponse.md +58 -0
- data/docs/BiomarkerRelationsRow.md +54 -0
- data/docs/BiomarkerSampleCoverageResponse.md +58 -0
- data/docs/BiomarkerSampleCoverageRow.md +36 -0
- data/docs/BiomarkerSamplePrevalenceResponse.md +58 -0
- data/docs/BiomarkerSamplePrevalenceRow.md +56 -0
- data/docs/BiomarkerValidationResponse.md +58 -0
- data/docs/BiomarkerValidationRow.md +70 -0
- data/docs/BiomarkersApi.md +320 -0
- data/docs/BiomarkersRow.md +2 -2
- data/docs/CellLinesRow.md +1 -1
- data/docs/CompaniesApi.md +410 -0
- data/docs/CompaniesRecord.md +1 -1
- data/docs/CompaniesRecordAttributes.md +18 -0
- data/docs/CompaniesRow.md +7 -3
- data/docs/CompanyAssetsResponse.md +58 -0
- data/docs/CompanyAssetsRow.md +42 -0
- data/docs/CompanyFundingEventsResponse.md +58 -0
- data/docs/CompanyFundingEventsRow.md +62 -0
- data/docs/CompanyFundingSummaryResponse.md +58 -0
- data/docs/CompanyFundingSummaryRow.md +46 -0
- data/docs/CompanyProgramsRow.md +2 -2
- data/docs/ConditionAdverseEventsResponse.md +58 -0
- data/docs/ConditionAdverseEventsRow.md +24 -0
- data/docs/ConditionBurdenResponse.md +58 -0
- data/docs/ConditionBurdenRow.md +32 -0
- data/docs/ConditionDeliveryResponse.md +58 -0
- data/docs/ConditionDeliveryRow.md +44 -0
- data/docs/ConditionDrugsResponse.md +58 -0
- data/docs/ConditionDrugsRow.md +26 -0
- data/docs/ConditionPrevalenceResponse.md +58 -0
- data/docs/ConditionPrevalenceRow.md +62 -0
- data/docs/ConditionPublicationsResponse.md +58 -0
- data/docs/ConditionPublicationsRow.md +32 -0
- data/docs/ConditionSitesResponse.md +58 -0
- data/docs/ConditionSitesRow.md +28 -0
- data/docs/ConditionTrialsResponse.md +58 -0
- data/docs/ConditionTrialsRow.md +58 -0
- data/docs/ConditionsApi.md +953 -0
- data/docs/ConditionsRecord.md +38 -0
- data/docs/ConditionsRecordAttributes.md +20 -0
- data/docs/ConditionsResponse.md +58 -0
- data/docs/ConditionsRow.md +32 -0
- data/docs/DrugPatentCliffRow.md +1 -1
- data/docs/InstitutionalHoldingsRow.md +3 -1
- data/docs/LegalEntitiesApi.md +160 -0
- data/docs/LegalEntitiesRow.md +1 -1
- data/docs/OwnershipPositionsResponse.md +58 -0
- data/docs/OwnershipPositionsRow.md +100 -0
- data/docs/PdufaDatesRow.md +2 -2
- data/docs/SiteCroTrialsRow.md +1 -1
- data/docs/SiteTrialConditionsRow.md +1 -1
- data/docs/SiteTrialDrugsRow.md +1 -1
- data/docs/SiteTrialsRow.md +1 -1
- data/docs/SponsorRecruitmentByPhaseRow.md +2 -2
- data/docs/SponsorRecruitmentDurationRow.md +1 -1
- data/docs/SponsorTrialsRow.md +2 -2
- data/docs/TrialAdverseEventsResponse.md +58 -0
- data/docs/TrialAdverseEventsRow.md +28 -0
- data/docs/TrialChangesResponse.md +58 -0
- data/docs/TrialChangesRow.md +36 -0
- data/docs/TrialDeliveryResponse.md +58 -0
- data/docs/TrialDeliveryRow.md +64 -0
- data/docs/TrialDemographicsResponse.md +58 -0
- data/docs/TrialDemographicsRow.md +32 -0
- data/docs/TrialDrugsResponse.md +58 -0
- data/docs/TrialDrugsRow.md +30 -0
- data/docs/TrialEnrollmentHistoryResponse.md +58 -0
- data/docs/TrialEnrollmentHistoryRow.md +36 -0
- data/docs/TrialEnrollmentRateResponse.md +58 -0
- data/docs/TrialEnrollmentRateRow.md +58 -0
- data/docs/TrialExtractedEndpointsResponse.md +58 -0
- data/docs/TrialExtractedEndpointsRow.md +40 -0
- data/docs/TrialOutcomeMeasuresResponse.md +58 -0
- data/docs/TrialOutcomeMeasuresRow.md +28 -0
- data/docs/TrialSitesResponse.md +58 -0
- data/docs/TrialSitesRow.md +46 -0
- data/docs/TrialsApi.md +1033 -0
- data/docs/TrialsRecord.md +38 -0
- data/docs/TrialsRecordAttributes.md +24 -0
- data/docs/TrialsResponse.md +58 -0
- data/docs/TrialsRow.md +116 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +455 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +1001 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +168 -0
- data/lib/pharmaobservatory/api/trials_api.rb +1085 -0
- data/lib/pharmaobservatory/models/biomarker_bqp_assertions_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_evidence_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_literature_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_relations_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_relations_row.rb +421 -0
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_row.rb +322 -0
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_row.rb +436 -0
- data/lib/pharmaobservatory/models/biomarker_validation_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_validation_row.rb +509 -0
- data/lib/pharmaobservatory/models/biomarkers_row.rb +2 -2
- data/lib/pharmaobservatory/models/cell_lines_row.rb +1 -1
- data/lib/pharmaobservatory/models/companies_record.rb +1 -1
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +220 -0
- data/lib/pharmaobservatory/models/companies_row.rb +29 -7
- data/lib/pharmaobservatory/models/company_assets_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_assets_row.rb +355 -0
- data/lib/pharmaobservatory/models/company_funding_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_funding_events_row.rb +465 -0
- data/lib/pharmaobservatory/models/company_funding_summary_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_funding_summary_row.rb +377 -0
- data/lib/pharmaobservatory/models/company_programs_row.rb +2 -2
- data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +256 -0
- data/lib/pharmaobservatory/models/condition_burden_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_burden_row.rb +300 -0
- data/lib/pharmaobservatory/models/condition_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_delivery_row.rb +366 -0
- data/lib/pharmaobservatory/models/condition_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_drugs_row.rb +267 -0
- data/lib/pharmaobservatory/models/condition_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_prevalence_row.rb +465 -0
- data/lib/pharmaobservatory/models/condition_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_publications_row.rb +300 -0
- data/lib/pharmaobservatory/models/condition_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_sites_row.rb +278 -0
- data/lib/pharmaobservatory/models/condition_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_trials_row.rb +443 -0
- data/lib/pharmaobservatory/models/conditions_record.rb +385 -0
- data/lib/pharmaobservatory/models/conditions_record_attributes.rb +229 -0
- data/lib/pharmaobservatory/models/conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/conditions_row.rb +304 -0
- data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +1 -1
- data/lib/pharmaobservatory/models/institutional_holdings_row.rb +13 -2
- data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
- data/lib/pharmaobservatory/models/ownership_positions_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_positions_row.rb +674 -0
- data/lib/pharmaobservatory/models/pdufa_dates_row.rb +2 -2
- data/lib/pharmaobservatory/models/site_cro_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trial_conditions_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trial_drugs_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_row.rb +2 -2
- data/lib/pharmaobservatory/models/sponsor_recruitment_duration_row.rb +1 -1
- data/lib/pharmaobservatory/models/sponsor_trials_row.rb +2 -2
- data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_adverse_events_row.rb +278 -0
- data/lib/pharmaobservatory/models/trial_changes_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_changes_row.rb +328 -0
- data/lib/pharmaobservatory/models/trial_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_delivery_row.rb +476 -0
- data/lib/pharmaobservatory/models/trial_demographics_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_demographics_row.rb +300 -0
- data/lib/pharmaobservatory/models/trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_drugs_row.rb +291 -0
- data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_enrollment_history_row.rb +322 -0
- data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +443 -0
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_row.rb +346 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_row.rb +278 -0
- data/lib/pharmaobservatory/models/trial_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_sites_row.rb +377 -0
- data/lib/pharmaobservatory/models/trials_record.rb +385 -0
- data/lib/pharmaobservatory/models/trials_record_attributes.rb +247 -0
- data/lib/pharmaobservatory/models/trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/trials_row.rb +784 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +63 -0
- metadata +127 -1
|
@@ -0,0 +1,465 @@
|
|
|
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 company_funding_events dataset: one row per funding event. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class CompanyFundingEventsRow
|
|
19
|
+
# The funding event key.
|
|
20
|
+
attr_accessor :funding_event_id
|
|
21
|
+
|
|
22
|
+
# The issuer's name as filed.
|
|
23
|
+
attr_accessor :issuer_name
|
|
24
|
+
|
|
25
|
+
# Legal-entity level: the issuer's organization record.
|
|
26
|
+
attr_accessor :issuer_org_id
|
|
27
|
+
|
|
28
|
+
# Company level: the issuer's company (null when the issuer did not resolve to a company).
|
|
29
|
+
attr_accessor :issuer_company_id
|
|
30
|
+
|
|
31
|
+
# Display name of the issuer's company.
|
|
32
|
+
attr_accessor :issuer_company_name
|
|
33
|
+
|
|
34
|
+
# Group level: the issuer's current ultimate parent company; a root company's group is itself.
|
|
35
|
+
attr_accessor :issuer_group_id
|
|
36
|
+
|
|
37
|
+
# Display name of the issuer's group.
|
|
38
|
+
attr_accessor :issuer_group_name
|
|
39
|
+
|
|
40
|
+
# The date the source gives for the event; event_stage says what the date means.
|
|
41
|
+
attr_accessor :event_date
|
|
42
|
+
|
|
43
|
+
# The NIH fiscal year, for a grant; null for the other sources.
|
|
44
|
+
attr_accessor :fiscal_year
|
|
45
|
+
|
|
46
|
+
# The source lane: reporter (NIH RePORTER grants), form_d (SEC Form D Regulation D offerings), edgar_offerings (SEC registered offerings) or sec_extracted (financings extracted from SEC filings).
|
|
47
|
+
attr_accessor :source
|
|
48
|
+
|
|
49
|
+
# The kind of round (for example grant_nih, sbir, reg_d_private, ipo, follow_on, public_offering, atm, registered_direct, debt).
|
|
50
|
+
attr_accessor :round_type
|
|
51
|
+
|
|
52
|
+
# A finer type, such as the grant activity code, the Regulation D exemption or the SEC form.
|
|
53
|
+
attr_accessor :round_subtype
|
|
54
|
+
|
|
55
|
+
# Whether the round dilutes existing equity; null where the instrument is not classified.
|
|
56
|
+
attr_accessor :is_dilutive
|
|
57
|
+
|
|
58
|
+
# The disclosed amount in whole US dollars; null where the amount is not disclosed.
|
|
59
|
+
attr_accessor :amount_usd
|
|
60
|
+
|
|
61
|
+
# The currency the source reports the amount in.
|
|
62
|
+
attr_accessor :currency
|
|
63
|
+
|
|
64
|
+
# Whether the source states an amount for the event.
|
|
65
|
+
attr_accessor :amount_is_disclosed
|
|
66
|
+
|
|
67
|
+
# Whether the event's dollars count as capital raised, and if not why not (for example structured_source, actual_inflow, capacity, committed).
|
|
68
|
+
attr_accessor :capital_treatment
|
|
69
|
+
|
|
70
|
+
# True where the event counts as capital the issuer raised.
|
|
71
|
+
attr_accessor :is_actual_issuer_inflow
|
|
72
|
+
|
|
73
|
+
# The lifecycle stage the event's date refers to (for example sold_to_date, funded, closed, registered, announced).
|
|
74
|
+
attr_accessor :event_stage
|
|
75
|
+
|
|
76
|
+
# The National Institutes of Health institute or center that administers the grant (for example CA for the National Cancer Institute); null for the other sources.
|
|
77
|
+
attr_accessor :administering_ic
|
|
78
|
+
|
|
79
|
+
# Grant applications folded into the event; 1 for the other sources.
|
|
80
|
+
attr_accessor :n_awards
|
|
81
|
+
|
|
82
|
+
# The running total of disclosed amounts over the company's own events up to and including this one, in date order; null where the event has no company.
|
|
83
|
+
attr_accessor :cumulative_raised_usd
|
|
84
|
+
|
|
85
|
+
# Link to the filing the event was read from, where the source has one.
|
|
86
|
+
attr_accessor :source_url
|
|
87
|
+
|
|
88
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
89
|
+
def self.attribute_map
|
|
90
|
+
{
|
|
91
|
+
:'funding_event_id' => :'funding_event_id',
|
|
92
|
+
:'issuer_name' => :'issuer_name',
|
|
93
|
+
:'issuer_org_id' => :'issuer_org_id',
|
|
94
|
+
:'issuer_company_id' => :'issuer_company_id',
|
|
95
|
+
:'issuer_company_name' => :'issuer_company_name',
|
|
96
|
+
:'issuer_group_id' => :'issuer_group_id',
|
|
97
|
+
:'issuer_group_name' => :'issuer_group_name',
|
|
98
|
+
:'event_date' => :'event_date',
|
|
99
|
+
:'fiscal_year' => :'fiscal_year',
|
|
100
|
+
:'source' => :'source',
|
|
101
|
+
:'round_type' => :'round_type',
|
|
102
|
+
:'round_subtype' => :'round_subtype',
|
|
103
|
+
:'is_dilutive' => :'is_dilutive',
|
|
104
|
+
:'amount_usd' => :'amount_usd',
|
|
105
|
+
:'currency' => :'currency',
|
|
106
|
+
:'amount_is_disclosed' => :'amount_is_disclosed',
|
|
107
|
+
:'capital_treatment' => :'capital_treatment',
|
|
108
|
+
:'is_actual_issuer_inflow' => :'is_actual_issuer_inflow',
|
|
109
|
+
:'event_stage' => :'event_stage',
|
|
110
|
+
:'administering_ic' => :'administering_ic',
|
|
111
|
+
:'n_awards' => :'n_awards',
|
|
112
|
+
:'cumulative_raised_usd' => :'cumulative_raised_usd',
|
|
113
|
+
:'source_url' => :'source_url'
|
|
114
|
+
}
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Returns attribute mapping this model knows about
|
|
118
|
+
def self.acceptable_attribute_map
|
|
119
|
+
attribute_map
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Returns all the JSON keys this model knows about
|
|
123
|
+
def self.acceptable_attributes
|
|
124
|
+
acceptable_attribute_map.values
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Attribute type mapping.
|
|
128
|
+
def self.openapi_types
|
|
129
|
+
{
|
|
130
|
+
:'funding_event_id' => :'String',
|
|
131
|
+
:'issuer_name' => :'String',
|
|
132
|
+
:'issuer_org_id' => :'String',
|
|
133
|
+
:'issuer_company_id' => :'String',
|
|
134
|
+
:'issuer_company_name' => :'String',
|
|
135
|
+
:'issuer_group_id' => :'String',
|
|
136
|
+
:'issuer_group_name' => :'String',
|
|
137
|
+
:'event_date' => :'Date',
|
|
138
|
+
:'fiscal_year' => :'Integer',
|
|
139
|
+
:'source' => :'String',
|
|
140
|
+
:'round_type' => :'String',
|
|
141
|
+
:'round_subtype' => :'String',
|
|
142
|
+
:'is_dilutive' => :'Boolean',
|
|
143
|
+
:'amount_usd' => :'Float',
|
|
144
|
+
:'currency' => :'String',
|
|
145
|
+
:'amount_is_disclosed' => :'Boolean',
|
|
146
|
+
:'capital_treatment' => :'String',
|
|
147
|
+
:'is_actual_issuer_inflow' => :'Boolean',
|
|
148
|
+
:'event_stage' => :'String',
|
|
149
|
+
:'administering_ic' => :'String',
|
|
150
|
+
:'n_awards' => :'Integer',
|
|
151
|
+
:'cumulative_raised_usd' => :'Float',
|
|
152
|
+
:'source_url' => :'String'
|
|
153
|
+
}
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# List of attributes with nullable: true
|
|
157
|
+
def self.openapi_nullable
|
|
158
|
+
Set.new([
|
|
159
|
+
:'funding_event_id',
|
|
160
|
+
:'issuer_name',
|
|
161
|
+
:'issuer_org_id',
|
|
162
|
+
:'issuer_company_id',
|
|
163
|
+
:'issuer_company_name',
|
|
164
|
+
:'issuer_group_id',
|
|
165
|
+
:'issuer_group_name',
|
|
166
|
+
:'event_date',
|
|
167
|
+
:'fiscal_year',
|
|
168
|
+
:'source',
|
|
169
|
+
:'round_type',
|
|
170
|
+
:'round_subtype',
|
|
171
|
+
:'is_dilutive',
|
|
172
|
+
:'amount_usd',
|
|
173
|
+
:'currency',
|
|
174
|
+
:'amount_is_disclosed',
|
|
175
|
+
:'capital_treatment',
|
|
176
|
+
:'is_actual_issuer_inflow',
|
|
177
|
+
:'event_stage',
|
|
178
|
+
:'administering_ic',
|
|
179
|
+
:'n_awards',
|
|
180
|
+
:'cumulative_raised_usd',
|
|
181
|
+
:'source_url'
|
|
182
|
+
])
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Initializes the object
|
|
186
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
187
|
+
def initialize(attributes = {})
|
|
188
|
+
if (!attributes.is_a?(Hash))
|
|
189
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::CompanyFundingEventsRow` initialize method"
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
193
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
194
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
195
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
196
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::CompanyFundingEventsRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
197
|
+
end
|
|
198
|
+
h[k.to_sym] = v
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if attributes.key?(:'funding_event_id')
|
|
202
|
+
self.funding_event_id = attributes[:'funding_event_id']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'issuer_name')
|
|
206
|
+
self.issuer_name = attributes[:'issuer_name']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'issuer_org_id')
|
|
210
|
+
self.issuer_org_id = attributes[:'issuer_org_id']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'issuer_company_id')
|
|
214
|
+
self.issuer_company_id = attributes[:'issuer_company_id']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'issuer_company_name')
|
|
218
|
+
self.issuer_company_name = attributes[:'issuer_company_name']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'issuer_group_id')
|
|
222
|
+
self.issuer_group_id = attributes[:'issuer_group_id']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'issuer_group_name')
|
|
226
|
+
self.issuer_group_name = attributes[:'issuer_group_name']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'event_date')
|
|
230
|
+
self.event_date = attributes[:'event_date']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'fiscal_year')
|
|
234
|
+
self.fiscal_year = attributes[:'fiscal_year']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'source')
|
|
238
|
+
self.source = attributes[:'source']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'round_type')
|
|
242
|
+
self.round_type = attributes[:'round_type']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'round_subtype')
|
|
246
|
+
self.round_subtype = attributes[:'round_subtype']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'is_dilutive')
|
|
250
|
+
self.is_dilutive = attributes[:'is_dilutive']
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'amount_usd')
|
|
254
|
+
self.amount_usd = attributes[:'amount_usd']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'currency')
|
|
258
|
+
self.currency = attributes[:'currency']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'amount_is_disclosed')
|
|
262
|
+
self.amount_is_disclosed = attributes[:'amount_is_disclosed']
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if attributes.key?(:'capital_treatment')
|
|
266
|
+
self.capital_treatment = attributes[:'capital_treatment']
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'is_actual_issuer_inflow')
|
|
270
|
+
self.is_actual_issuer_inflow = attributes[:'is_actual_issuer_inflow']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'event_stage')
|
|
274
|
+
self.event_stage = attributes[:'event_stage']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'administering_ic')
|
|
278
|
+
self.administering_ic = attributes[:'administering_ic']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'n_awards')
|
|
282
|
+
self.n_awards = attributes[:'n_awards']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'cumulative_raised_usd')
|
|
286
|
+
self.cumulative_raised_usd = attributes[:'cumulative_raised_usd']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'source_url')
|
|
290
|
+
self.source_url = attributes[:'source_url']
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
295
|
+
# @return Array for valid properties with the reasons
|
|
296
|
+
def list_invalid_properties
|
|
297
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
298
|
+
invalid_properties = Array.new
|
|
299
|
+
invalid_properties
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# Check to see if the all the properties in the model are valid
|
|
303
|
+
# @return true if the model is valid
|
|
304
|
+
def valid?
|
|
305
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
306
|
+
true
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Checks equality by comparing each attribute.
|
|
310
|
+
# @param [Object] Object to be compared
|
|
311
|
+
def ==(o)
|
|
312
|
+
return true if self.equal?(o)
|
|
313
|
+
self.class == o.class &&
|
|
314
|
+
funding_event_id == o.funding_event_id &&
|
|
315
|
+
issuer_name == o.issuer_name &&
|
|
316
|
+
issuer_org_id == o.issuer_org_id &&
|
|
317
|
+
issuer_company_id == o.issuer_company_id &&
|
|
318
|
+
issuer_company_name == o.issuer_company_name &&
|
|
319
|
+
issuer_group_id == o.issuer_group_id &&
|
|
320
|
+
issuer_group_name == o.issuer_group_name &&
|
|
321
|
+
event_date == o.event_date &&
|
|
322
|
+
fiscal_year == o.fiscal_year &&
|
|
323
|
+
source == o.source &&
|
|
324
|
+
round_type == o.round_type &&
|
|
325
|
+
round_subtype == o.round_subtype &&
|
|
326
|
+
is_dilutive == o.is_dilutive &&
|
|
327
|
+
amount_usd == o.amount_usd &&
|
|
328
|
+
currency == o.currency &&
|
|
329
|
+
amount_is_disclosed == o.amount_is_disclosed &&
|
|
330
|
+
capital_treatment == o.capital_treatment &&
|
|
331
|
+
is_actual_issuer_inflow == o.is_actual_issuer_inflow &&
|
|
332
|
+
event_stage == o.event_stage &&
|
|
333
|
+
administering_ic == o.administering_ic &&
|
|
334
|
+
n_awards == o.n_awards &&
|
|
335
|
+
cumulative_raised_usd == o.cumulative_raised_usd &&
|
|
336
|
+
source_url == o.source_url
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# @see the `==` method
|
|
340
|
+
# @param [Object] Object to be compared
|
|
341
|
+
def eql?(o)
|
|
342
|
+
self == o
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Calculates hash code according to all attributes.
|
|
346
|
+
# @return [Integer] Hash code
|
|
347
|
+
def hash
|
|
348
|
+
[funding_event_id, issuer_name, issuer_org_id, issuer_company_id, issuer_company_name, issuer_group_id, issuer_group_name, event_date, fiscal_year, source, round_type, round_subtype, is_dilutive, amount_usd, currency, amount_is_disclosed, capital_treatment, is_actual_issuer_inflow, event_stage, administering_ic, n_awards, cumulative_raised_usd, source_url].hash
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Builds the object from hash
|
|
352
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
353
|
+
# @return [Object] Returns the model itself
|
|
354
|
+
def self.build_from_hash(attributes)
|
|
355
|
+
return nil unless attributes.is_a?(Hash)
|
|
356
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
357
|
+
transformed_hash = {}
|
|
358
|
+
openapi_types.each_pair do |key, type|
|
|
359
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
360
|
+
transformed_hash["#{key}"] = nil
|
|
361
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
362
|
+
# check to ensure the input is an array given that the attribute
|
|
363
|
+
# is documented as an array but the input is not
|
|
364
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
365
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
366
|
+
end
|
|
367
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
368
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
new(transformed_hash)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Deserializes the data based on type
|
|
375
|
+
# @param string type Data type
|
|
376
|
+
# @param string value Value to be deserialized
|
|
377
|
+
# @return [Object] Deserialized data
|
|
378
|
+
def self._deserialize(type, value)
|
|
379
|
+
case type.to_sym
|
|
380
|
+
when :Time
|
|
381
|
+
Time.parse(value)
|
|
382
|
+
when :Date
|
|
383
|
+
Date.parse(value)
|
|
384
|
+
when :String
|
|
385
|
+
value.to_s
|
|
386
|
+
when :Integer
|
|
387
|
+
value.to_i
|
|
388
|
+
when :Float
|
|
389
|
+
value.to_f
|
|
390
|
+
when :Boolean
|
|
391
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
392
|
+
true
|
|
393
|
+
else
|
|
394
|
+
false
|
|
395
|
+
end
|
|
396
|
+
when :Object
|
|
397
|
+
# generic object (usually a Hash), return directly
|
|
398
|
+
value
|
|
399
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
400
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
401
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
402
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
403
|
+
k_type = Regexp.last_match[:k_type]
|
|
404
|
+
v_type = Regexp.last_match[:v_type]
|
|
405
|
+
{}.tap do |hash|
|
|
406
|
+
value.each do |k, v|
|
|
407
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
else # model
|
|
411
|
+
# models (e.g. Pet) or oneOf
|
|
412
|
+
klass = PharmaObservatory.const_get(type)
|
|
413
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# Returns the string representation of the object
|
|
418
|
+
# @return [String] String presentation of the object
|
|
419
|
+
def to_s
|
|
420
|
+
to_hash.to_s
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
424
|
+
# @return [Hash] Returns the object in the form of hash
|
|
425
|
+
def to_body
|
|
426
|
+
to_hash
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Returns the object in the form of hash
|
|
430
|
+
# @return [Hash] Returns the object in the form of hash
|
|
431
|
+
def to_hash
|
|
432
|
+
hash = {}
|
|
433
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
434
|
+
value = self.send(attr)
|
|
435
|
+
if value.nil?
|
|
436
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
437
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
hash[param] = _to_hash(value)
|
|
441
|
+
end
|
|
442
|
+
hash
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
# Outputs non-array value in the form of hash
|
|
446
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
447
|
+
# @param [Object] value Any valid value
|
|
448
|
+
# @return [Hash] Returns the value in the form of hash
|
|
449
|
+
def _to_hash(value)
|
|
450
|
+
if value.is_a?(Array)
|
|
451
|
+
value.compact.map { |v| _to_hash(v) }
|
|
452
|
+
elsif value.is_a?(Hash)
|
|
453
|
+
{}.tap do |hash|
|
|
454
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
455
|
+
end
|
|
456
|
+
elsif value.respond_to? :to_hash
|
|
457
|
+
value.to_hash
|
|
458
|
+
else
|
|
459
|
+
value
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
end
|