pharmaobservatory 0.1.12 → 0.1.13
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 +15 -4
- data/docs/CompaniesApi.md +328 -0
- data/docs/CompaniesRecordAttributes.md +2 -0
- data/docs/CompanyCompetitorsRow.md +3 -1
- data/docs/CompanyCosponsorsResponse.md +58 -0
- data/docs/CompanyCosponsorsRow.md +58 -0
- data/docs/CompanyPeerProfileResponse.md +58 -0
- data/docs/CompanyPeerProfileRow.md +60 -0
- data/docs/CompanyPeersResponse.md +58 -0
- data/docs/CompanyPeersRow.md +54 -0
- data/docs/InvestorPortfolioRow.md +2 -0
- data/docs/LegalEntitiesApi.md +80 -0
- data/lib/pharmaobservatory/api/companies_api.rb +364 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +84 -0
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +10 -1
- data/lib/pharmaobservatory/models/company_competitors_row.rb +16 -5
- data/lib/pharmaobservatory/models/company_cosponsors_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_cosponsors_row.rb +445 -0
- data/lib/pharmaobservatory/models/company_peer_profile_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_peer_profile_row.rb +454 -0
- data/lib/pharmaobservatory/models/company_peers_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_peers_row.rb +421 -0
- data/lib/pharmaobservatory/models/investor_portfolio_row.rb +12 -1
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +6 -0
- metadata +14 -2
|
@@ -0,0 +1,421 @@
|
|
|
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_peers dataset: one row per ordered company pair: an industry company and one of its top 10 peers by the match ladder. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class CompanyPeersRow
|
|
19
|
+
# Company level: the company the row is about; the entry key for the companies object type.
|
|
20
|
+
attr_accessor :company_id
|
|
21
|
+
|
|
22
|
+
# Display name of the company.
|
|
23
|
+
attr_accessor :company_name
|
|
24
|
+
|
|
25
|
+
# Group level: the company's current ultimate parent; a root's group is itself.
|
|
26
|
+
attr_accessor :group_id
|
|
27
|
+
|
|
28
|
+
# Display name of the group.
|
|
29
|
+
attr_accessor :group_name
|
|
30
|
+
|
|
31
|
+
# Company level: the peer company.
|
|
32
|
+
attr_accessor :peer_company_id
|
|
33
|
+
|
|
34
|
+
# Display name of the peer company.
|
|
35
|
+
attr_accessor :peer_company_name
|
|
36
|
+
|
|
37
|
+
# Group level: the peer's current ultimate parent; a root's group is itself.
|
|
38
|
+
attr_accessor :peer_group_id
|
|
39
|
+
|
|
40
|
+
# Display name of the peer's group.
|
|
41
|
+
attr_accessor :peer_group_name
|
|
42
|
+
|
|
43
|
+
# The peer's rank for the company, 1 is the closest match: match_level first, then the closeness of lead-trial counts, then of biologic share. Dense 1 to N.
|
|
44
|
+
attr_accessor :peer_rank
|
|
45
|
+
|
|
46
|
+
# What the peer matched the company on. 1 stage, modality, area and size; 2 stage, modality and area; 3 stage, modality and size; 4 stage and modality. Stage and modality always match.
|
|
47
|
+
attr_accessor :match_level
|
|
48
|
+
|
|
49
|
+
# True when the peer shares the company's primary therapeutic area.
|
|
50
|
+
attr_accessor :matched_area
|
|
51
|
+
|
|
52
|
+
# True when the peer shares the company's size band.
|
|
53
|
+
attr_accessor :matched_size
|
|
54
|
+
|
|
55
|
+
# The peer's lead stage, the furthest phase of its live owned programs. Equal to the company's lead stage on every row.
|
|
56
|
+
attr_accessor :lead_stage
|
|
57
|
+
|
|
58
|
+
# The peer's lead drug, the highest-phase live owned drug (ties: most trials).
|
|
59
|
+
attr_accessor :lead_drug_name
|
|
60
|
+
|
|
61
|
+
# Share, 0 to 1, of the peer's live owned drugs that are biologic (GSRS protein or nucleic acid substance type).
|
|
62
|
+
attr_accessor :biologic_share
|
|
63
|
+
|
|
64
|
+
# biologic when biologic_share is at least 0.5, else non_biologic. Equal to the company's band on every row.
|
|
65
|
+
attr_accessor :modality_band
|
|
66
|
+
|
|
67
|
+
# The peer's primary therapeutic area: the MeSH top-level category with the most live owned program trials.
|
|
68
|
+
attr_accessor :primary_area
|
|
69
|
+
|
|
70
|
+
# Distinct lead-sponsored trials of the peer's subtree.
|
|
71
|
+
attr_accessor :num_lead_trials
|
|
72
|
+
|
|
73
|
+
# Band of num_lead_trials: 1-4, 5-19, 20-99 or 100+.
|
|
74
|
+
attr_accessor :size_band
|
|
75
|
+
|
|
76
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
77
|
+
def self.attribute_map
|
|
78
|
+
{
|
|
79
|
+
:'company_id' => :'company_id',
|
|
80
|
+
:'company_name' => :'company_name',
|
|
81
|
+
:'group_id' => :'group_id',
|
|
82
|
+
:'group_name' => :'group_name',
|
|
83
|
+
:'peer_company_id' => :'peer_company_id',
|
|
84
|
+
:'peer_company_name' => :'peer_company_name',
|
|
85
|
+
:'peer_group_id' => :'peer_group_id',
|
|
86
|
+
:'peer_group_name' => :'peer_group_name',
|
|
87
|
+
:'peer_rank' => :'peer_rank',
|
|
88
|
+
:'match_level' => :'match_level',
|
|
89
|
+
:'matched_area' => :'matched_area',
|
|
90
|
+
:'matched_size' => :'matched_size',
|
|
91
|
+
:'lead_stage' => :'lead_stage',
|
|
92
|
+
:'lead_drug_name' => :'lead_drug_name',
|
|
93
|
+
:'biologic_share' => :'biologic_share',
|
|
94
|
+
:'modality_band' => :'modality_band',
|
|
95
|
+
:'primary_area' => :'primary_area',
|
|
96
|
+
:'num_lead_trials' => :'num_lead_trials',
|
|
97
|
+
:'size_band' => :'size_band'
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Returns attribute mapping this model knows about
|
|
102
|
+
def self.acceptable_attribute_map
|
|
103
|
+
attribute_map
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Returns all the JSON keys this model knows about
|
|
107
|
+
def self.acceptable_attributes
|
|
108
|
+
acceptable_attribute_map.values
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Attribute type mapping.
|
|
112
|
+
def self.openapi_types
|
|
113
|
+
{
|
|
114
|
+
:'company_id' => :'String',
|
|
115
|
+
:'company_name' => :'String',
|
|
116
|
+
:'group_id' => :'String',
|
|
117
|
+
:'group_name' => :'String',
|
|
118
|
+
:'peer_company_id' => :'String',
|
|
119
|
+
:'peer_company_name' => :'String',
|
|
120
|
+
:'peer_group_id' => :'String',
|
|
121
|
+
:'peer_group_name' => :'String',
|
|
122
|
+
:'peer_rank' => :'Integer',
|
|
123
|
+
:'match_level' => :'Integer',
|
|
124
|
+
:'matched_area' => :'Boolean',
|
|
125
|
+
:'matched_size' => :'Boolean',
|
|
126
|
+
:'lead_stage' => :'String',
|
|
127
|
+
:'lead_drug_name' => :'String',
|
|
128
|
+
:'biologic_share' => :'Float',
|
|
129
|
+
:'modality_band' => :'String',
|
|
130
|
+
:'primary_area' => :'String',
|
|
131
|
+
:'num_lead_trials' => :'Integer',
|
|
132
|
+
:'size_band' => :'String'
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# List of attributes with nullable: true
|
|
137
|
+
def self.openapi_nullable
|
|
138
|
+
Set.new([
|
|
139
|
+
:'company_id',
|
|
140
|
+
:'company_name',
|
|
141
|
+
:'group_id',
|
|
142
|
+
:'group_name',
|
|
143
|
+
:'peer_company_id',
|
|
144
|
+
:'peer_company_name',
|
|
145
|
+
:'peer_group_id',
|
|
146
|
+
:'peer_group_name',
|
|
147
|
+
:'peer_rank',
|
|
148
|
+
:'match_level',
|
|
149
|
+
:'matched_area',
|
|
150
|
+
:'matched_size',
|
|
151
|
+
:'lead_stage',
|
|
152
|
+
:'lead_drug_name',
|
|
153
|
+
:'biologic_share',
|
|
154
|
+
:'modality_band',
|
|
155
|
+
:'primary_area',
|
|
156
|
+
:'num_lead_trials',
|
|
157
|
+
:'size_band'
|
|
158
|
+
])
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Initializes the object
|
|
162
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
163
|
+
def initialize(attributes = {})
|
|
164
|
+
if (!attributes.is_a?(Hash))
|
|
165
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::CompanyPeersRow` initialize method"
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
169
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
170
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
171
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
172
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::CompanyPeersRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
173
|
+
end
|
|
174
|
+
h[k.to_sym] = v
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if attributes.key?(:'company_id')
|
|
178
|
+
self.company_id = attributes[:'company_id']
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'company_name')
|
|
182
|
+
self.company_name = attributes[:'company_name']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'group_id')
|
|
186
|
+
self.group_id = attributes[:'group_id']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.key?(:'group_name')
|
|
190
|
+
self.group_name = attributes[:'group_name']
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.key?(:'peer_company_id')
|
|
194
|
+
self.peer_company_id = attributes[:'peer_company_id']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.key?(:'peer_company_name')
|
|
198
|
+
self.peer_company_name = attributes[:'peer_company_name']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.key?(:'peer_group_id')
|
|
202
|
+
self.peer_group_id = attributes[:'peer_group_id']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'peer_group_name')
|
|
206
|
+
self.peer_group_name = attributes[:'peer_group_name']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'peer_rank')
|
|
210
|
+
self.peer_rank = attributes[:'peer_rank']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'match_level')
|
|
214
|
+
self.match_level = attributes[:'match_level']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'matched_area')
|
|
218
|
+
self.matched_area = attributes[:'matched_area']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'matched_size')
|
|
222
|
+
self.matched_size = attributes[:'matched_size']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'lead_stage')
|
|
226
|
+
self.lead_stage = attributes[:'lead_stage']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'lead_drug_name')
|
|
230
|
+
self.lead_drug_name = attributes[:'lead_drug_name']
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'biologic_share')
|
|
234
|
+
self.biologic_share = attributes[:'biologic_share']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'modality_band')
|
|
238
|
+
self.modality_band = attributes[:'modality_band']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'primary_area')
|
|
242
|
+
self.primary_area = attributes[:'primary_area']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'num_lead_trials')
|
|
246
|
+
self.num_lead_trials = attributes[:'num_lead_trials']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'size_band')
|
|
250
|
+
self.size_band = attributes[:'size_band']
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
255
|
+
# @return Array for valid properties with the reasons
|
|
256
|
+
def list_invalid_properties
|
|
257
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
258
|
+
invalid_properties = Array.new
|
|
259
|
+
invalid_properties
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Check to see if the all the properties in the model are valid
|
|
263
|
+
# @return true if the model is valid
|
|
264
|
+
def valid?
|
|
265
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
266
|
+
true
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Checks equality by comparing each attribute.
|
|
270
|
+
# @param [Object] Object to be compared
|
|
271
|
+
def ==(o)
|
|
272
|
+
return true if self.equal?(o)
|
|
273
|
+
self.class == o.class &&
|
|
274
|
+
company_id == o.company_id &&
|
|
275
|
+
company_name == o.company_name &&
|
|
276
|
+
group_id == o.group_id &&
|
|
277
|
+
group_name == o.group_name &&
|
|
278
|
+
peer_company_id == o.peer_company_id &&
|
|
279
|
+
peer_company_name == o.peer_company_name &&
|
|
280
|
+
peer_group_id == o.peer_group_id &&
|
|
281
|
+
peer_group_name == o.peer_group_name &&
|
|
282
|
+
peer_rank == o.peer_rank &&
|
|
283
|
+
match_level == o.match_level &&
|
|
284
|
+
matched_area == o.matched_area &&
|
|
285
|
+
matched_size == o.matched_size &&
|
|
286
|
+
lead_stage == o.lead_stage &&
|
|
287
|
+
lead_drug_name == o.lead_drug_name &&
|
|
288
|
+
biologic_share == o.biologic_share &&
|
|
289
|
+
modality_band == o.modality_band &&
|
|
290
|
+
primary_area == o.primary_area &&
|
|
291
|
+
num_lead_trials == o.num_lead_trials &&
|
|
292
|
+
size_band == o.size_band
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# @see the `==` method
|
|
296
|
+
# @param [Object] Object to be compared
|
|
297
|
+
def eql?(o)
|
|
298
|
+
self == o
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Calculates hash code according to all attributes.
|
|
302
|
+
# @return [Integer] Hash code
|
|
303
|
+
def hash
|
|
304
|
+
[company_id, company_name, group_id, group_name, peer_company_id, peer_company_name, peer_group_id, peer_group_name, peer_rank, match_level, matched_area, matched_size, lead_stage, lead_drug_name, biologic_share, modality_band, primary_area, num_lead_trials, size_band].hash
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Builds the object from hash
|
|
308
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
309
|
+
# @return [Object] Returns the model itself
|
|
310
|
+
def self.build_from_hash(attributes)
|
|
311
|
+
return nil unless attributes.is_a?(Hash)
|
|
312
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
313
|
+
transformed_hash = {}
|
|
314
|
+
openapi_types.each_pair do |key, type|
|
|
315
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
316
|
+
transformed_hash["#{key}"] = nil
|
|
317
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
318
|
+
# check to ensure the input is an array given that the attribute
|
|
319
|
+
# is documented as an array but the input is not
|
|
320
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
321
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
322
|
+
end
|
|
323
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
324
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
new(transformed_hash)
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Deserializes the data based on type
|
|
331
|
+
# @param string type Data type
|
|
332
|
+
# @param string value Value to be deserialized
|
|
333
|
+
# @return [Object] Deserialized data
|
|
334
|
+
def self._deserialize(type, value)
|
|
335
|
+
case type.to_sym
|
|
336
|
+
when :Time
|
|
337
|
+
Time.parse(value)
|
|
338
|
+
when :Date
|
|
339
|
+
Date.parse(value)
|
|
340
|
+
when :String
|
|
341
|
+
value.to_s
|
|
342
|
+
when :Integer
|
|
343
|
+
value.to_i
|
|
344
|
+
when :Float
|
|
345
|
+
value.to_f
|
|
346
|
+
when :Boolean
|
|
347
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
348
|
+
true
|
|
349
|
+
else
|
|
350
|
+
false
|
|
351
|
+
end
|
|
352
|
+
when :Object
|
|
353
|
+
# generic object (usually a Hash), return directly
|
|
354
|
+
value
|
|
355
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
356
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
357
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
358
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
359
|
+
k_type = Regexp.last_match[:k_type]
|
|
360
|
+
v_type = Regexp.last_match[:v_type]
|
|
361
|
+
{}.tap do |hash|
|
|
362
|
+
value.each do |k, v|
|
|
363
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
else # model
|
|
367
|
+
# models (e.g. Pet) or oneOf
|
|
368
|
+
klass = PharmaObservatory.const_get(type)
|
|
369
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Returns the string representation of the object
|
|
374
|
+
# @return [String] String presentation of the object
|
|
375
|
+
def to_s
|
|
376
|
+
to_hash.to_s
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
380
|
+
# @return [Hash] Returns the object in the form of hash
|
|
381
|
+
def to_body
|
|
382
|
+
to_hash
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Returns the object in the form of hash
|
|
386
|
+
# @return [Hash] Returns the object in the form of hash
|
|
387
|
+
def to_hash
|
|
388
|
+
hash = {}
|
|
389
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
390
|
+
value = self.send(attr)
|
|
391
|
+
if value.nil?
|
|
392
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
393
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
hash[param] = _to_hash(value)
|
|
397
|
+
end
|
|
398
|
+
hash
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Outputs non-array value in the form of hash
|
|
402
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
403
|
+
# @param [Object] value Any valid value
|
|
404
|
+
# @return [Hash] Returns the value in the form of hash
|
|
405
|
+
def _to_hash(value)
|
|
406
|
+
if value.is_a?(Array)
|
|
407
|
+
value.compact.map { |v| _to_hash(v) }
|
|
408
|
+
elsif value.is_a?(Hash)
|
|
409
|
+
{}.tap do |hash|
|
|
410
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
411
|
+
end
|
|
412
|
+
elsif value.respond_to? :to_hash
|
|
413
|
+
value.to_hash
|
|
414
|
+
else
|
|
415
|
+
value
|
|
416
|
+
end
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
end
|
|
@@ -88,6 +88,9 @@ module PharmaObservatory
|
|
|
88
88
|
# The date we first saw this status for the company on the investor's page: an observation date, never the date the event happened.
|
|
89
89
|
attr_accessor :status_first_observed_at
|
|
90
90
|
|
|
91
|
+
# True when the quote behind a website listing was found on the investor's page, false when it was not, null when no verification flag was recorded and for a row only SEC filings name.
|
|
92
|
+
attr_accessor :site_evidence_verified
|
|
93
|
+
|
|
91
94
|
# The address of the investor's portfolio page the listing was read from. Null for a row only SEC filings name.
|
|
92
95
|
attr_accessor :source_url
|
|
93
96
|
|
|
@@ -124,6 +127,7 @@ module PharmaObservatory
|
|
|
124
127
|
:'status_on_page' => :'status_on_page',
|
|
125
128
|
:'status_date' => :'status_date',
|
|
126
129
|
:'status_first_observed_at' => :'status_first_observed_at',
|
|
130
|
+
:'site_evidence_verified' => :'site_evidence_verified',
|
|
127
131
|
:'source_url' => :'source_url',
|
|
128
132
|
:'site_last_retrieved_at' => :'site_last_retrieved_at',
|
|
129
133
|
:'is_life_sciences_issuer' => :'is_life_sciences_issuer'
|
|
@@ -167,6 +171,7 @@ module PharmaObservatory
|
|
|
167
171
|
:'status_on_page' => :'String',
|
|
168
172
|
:'status_date' => :'String',
|
|
169
173
|
:'status_first_observed_at' => :'Date',
|
|
174
|
+
:'site_evidence_verified' => :'Boolean',
|
|
170
175
|
:'source_url' => :'String',
|
|
171
176
|
:'site_last_retrieved_at' => :'Time',
|
|
172
177
|
:'is_life_sciences_issuer' => :'Boolean'
|
|
@@ -200,6 +205,7 @@ module PharmaObservatory
|
|
|
200
205
|
:'status_on_page',
|
|
201
206
|
:'status_date',
|
|
202
207
|
:'status_first_observed_at',
|
|
208
|
+
:'site_evidence_verified',
|
|
203
209
|
:'source_url',
|
|
204
210
|
:'site_last_retrieved_at',
|
|
205
211
|
:'is_life_sciences_issuer'
|
|
@@ -322,6 +328,10 @@ module PharmaObservatory
|
|
|
322
328
|
self.status_first_observed_at = attributes[:'status_first_observed_at']
|
|
323
329
|
end
|
|
324
330
|
|
|
331
|
+
if attributes.key?(:'site_evidence_verified')
|
|
332
|
+
self.site_evidence_verified = attributes[:'site_evidence_verified']
|
|
333
|
+
end
|
|
334
|
+
|
|
325
335
|
if attributes.key?(:'source_url')
|
|
326
336
|
self.source_url = attributes[:'source_url']
|
|
327
337
|
end
|
|
@@ -379,6 +389,7 @@ module PharmaObservatory
|
|
|
379
389
|
status_on_page == o.status_on_page &&
|
|
380
390
|
status_date == o.status_date &&
|
|
381
391
|
status_first_observed_at == o.status_first_observed_at &&
|
|
392
|
+
site_evidence_verified == o.site_evidence_verified &&
|
|
382
393
|
source_url == o.source_url &&
|
|
383
394
|
site_last_retrieved_at == o.site_last_retrieved_at &&
|
|
384
395
|
is_life_sciences_issuer == o.is_life_sciences_issuer
|
|
@@ -393,7 +404,7 @@ module PharmaObservatory
|
|
|
393
404
|
# Calculates hash code according to all attributes.
|
|
394
405
|
# @return [Integer] Hash code
|
|
395
406
|
def hash
|
|
396
|
-
[investor_id, company_key, company_key_kind, sources, issuer_cik, issuer_name, company_name_as_listed, company_website_url, issuer_org_id, issuer_company_id, issuer_company_name, issuer_group_id, issuer_group_name, relationship_types, edge_count, first_observed_date, last_observed_date, listed_from, listed_to, removal_reason, is_removed, status_on_page, status_date, status_first_observed_at, source_url, site_last_retrieved_at, is_life_sciences_issuer].hash
|
|
407
|
+
[investor_id, company_key, company_key_kind, sources, issuer_cik, issuer_name, company_name_as_listed, company_website_url, issuer_org_id, issuer_company_id, issuer_company_name, issuer_group_id, issuer_group_name, relationship_types, edge_count, first_observed_date, last_observed_date, listed_from, listed_to, removal_reason, is_removed, status_on_page, status_date, status_first_observed_at, site_evidence_verified, source_url, site_last_retrieved_at, is_life_sciences_issuer].hash
|
|
397
408
|
end
|
|
398
409
|
|
|
399
410
|
# Builds the object from hash
|
data/lib/pharmaobservatory.rb
CHANGED
|
@@ -88,6 +88,8 @@ require 'pharmaobservatory/models/company_competitor_activity_response'
|
|
|
88
88
|
require 'pharmaobservatory/models/company_competitor_activity_row'
|
|
89
89
|
require 'pharmaobservatory/models/company_competitors_response'
|
|
90
90
|
require 'pharmaobservatory/models/company_competitors_row'
|
|
91
|
+
require 'pharmaobservatory/models/company_cosponsors_response'
|
|
92
|
+
require 'pharmaobservatory/models/company_cosponsors_row'
|
|
91
93
|
require 'pharmaobservatory/models/company_financials_response'
|
|
92
94
|
require 'pharmaobservatory/models/company_financials_row'
|
|
93
95
|
require 'pharmaobservatory/models/company_firmographics_response'
|
|
@@ -98,6 +100,10 @@ require 'pharmaobservatory/models/company_funding_summary_response'
|
|
|
98
100
|
require 'pharmaobservatory/models/company_funding_summary_row'
|
|
99
101
|
require 'pharmaobservatory/models/company_members_response'
|
|
100
102
|
require 'pharmaobservatory/models/company_members_row'
|
|
103
|
+
require 'pharmaobservatory/models/company_peer_profile_response'
|
|
104
|
+
require 'pharmaobservatory/models/company_peer_profile_row'
|
|
105
|
+
require 'pharmaobservatory/models/company_peers_response'
|
|
106
|
+
require 'pharmaobservatory/models/company_peers_row'
|
|
101
107
|
require 'pharmaobservatory/models/company_programs_response'
|
|
102
108
|
require 'pharmaobservatory/models/company_programs_row'
|
|
103
109
|
require 'pharmaobservatory/models/company_rare_disease_declarations_response'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pharmaobservatory
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scientist.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -162,6 +162,8 @@ files:
|
|
|
162
162
|
- docs/CompanyCompetitorActivityRow.md
|
|
163
163
|
- docs/CompanyCompetitorsResponse.md
|
|
164
164
|
- docs/CompanyCompetitorsRow.md
|
|
165
|
+
- docs/CompanyCosponsorsResponse.md
|
|
166
|
+
- docs/CompanyCosponsorsRow.md
|
|
165
167
|
- docs/CompanyFinancialsResponse.md
|
|
166
168
|
- docs/CompanyFinancialsRow.md
|
|
167
169
|
- docs/CompanyFirmographicsResponse.md
|
|
@@ -172,6 +174,10 @@ files:
|
|
|
172
174
|
- docs/CompanyFundingSummaryRow.md
|
|
173
175
|
- docs/CompanyMembersResponse.md
|
|
174
176
|
- docs/CompanyMembersRow.md
|
|
177
|
+
- docs/CompanyPeerProfileResponse.md
|
|
178
|
+
- docs/CompanyPeerProfileRow.md
|
|
179
|
+
- docs/CompanyPeersResponse.md
|
|
180
|
+
- docs/CompanyPeersRow.md
|
|
175
181
|
- docs/CompanyProgramsResponse.md
|
|
176
182
|
- docs/CompanyProgramsRow.md
|
|
177
183
|
- docs/CompanyRareDiseaseDeclarationsResponse.md
|
|
@@ -662,6 +668,8 @@ files:
|
|
|
662
668
|
- lib/pharmaobservatory/models/company_competitor_activity_row.rb
|
|
663
669
|
- lib/pharmaobservatory/models/company_competitors_response.rb
|
|
664
670
|
- lib/pharmaobservatory/models/company_competitors_row.rb
|
|
671
|
+
- lib/pharmaobservatory/models/company_cosponsors_response.rb
|
|
672
|
+
- lib/pharmaobservatory/models/company_cosponsors_row.rb
|
|
665
673
|
- lib/pharmaobservatory/models/company_financials_response.rb
|
|
666
674
|
- lib/pharmaobservatory/models/company_financials_row.rb
|
|
667
675
|
- lib/pharmaobservatory/models/company_firmographics_response.rb
|
|
@@ -672,6 +680,10 @@ files:
|
|
|
672
680
|
- lib/pharmaobservatory/models/company_funding_summary_row.rb
|
|
673
681
|
- lib/pharmaobservatory/models/company_members_response.rb
|
|
674
682
|
- lib/pharmaobservatory/models/company_members_row.rb
|
|
683
|
+
- lib/pharmaobservatory/models/company_peer_profile_response.rb
|
|
684
|
+
- lib/pharmaobservatory/models/company_peer_profile_row.rb
|
|
685
|
+
- lib/pharmaobservatory/models/company_peers_response.rb
|
|
686
|
+
- lib/pharmaobservatory/models/company_peers_row.rb
|
|
675
687
|
- lib/pharmaobservatory/models/company_programs_response.rb
|
|
676
688
|
- lib/pharmaobservatory/models/company_programs_row.rb
|
|
677
689
|
- lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb
|