Class: NewDemoApiClient::DealCombinedMetricsResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/test_sdk/types/deal_combined_metrics_response.rb

Constant Summary collapse

OMIT =
Object.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date:, method:, revenue: OMIT, rolling3m_average_revenue: OMIT, annualized_revenue: OMIT, rolling3m_annualized_revenue: OMIT, revenue_share_of_top20percent: OMIT, revenue_share_of_top10count: OMIT, average_to_median: OMIT, gini_coefficient: OMIT, lifetime_quick_ratio: OMIT, lifetime_gross_retention: OMIT, lifetime_net_churn: OMIT, cmgr3: OMIT, cmgr6: OMIT, cmgr12: OMIT, yoy: OMIT, operating_margin: OMIT, quarterly_operating_margin: OMIT, gross_margin: OMIT, quarterly_gross_margin: OMIT, magic_number: OMIT, rule_of40: OMIT, burn_multiple: OMIT, acquisition_spend: OMIT, total_opex: OMIT, logo_retention6m: OMIT, logo_retention12m: OMIT, revenue_retention6m: OMIT, revenue_retention12m: OMIT, ltv6m: OMIT, ltv12m: OMIT, ltv6cac: OMIT, ltv12cac: OMIT, gmltv6cac: OMIT, gmltv12cac: OMIT, lifetime_ltv6cac: OMIT, lifetime_ltv12cac: OMIT, lifetime_gmltv6cac: OMIT, lifetime_gmltv12cac: OMIT, cac: OMIT, irr: OMIT, periods_to_payback: OMIT, employee_count: OMIT, cumulative_person_years: OMIT, employee_retention1yr: OMIT, employee_retention2yr: OMIT, average_years_of_experience: OMIT, lifetime_employee_retention: OMIT, percent_employees_sales_and_marketing: OMIT, fully_loaded_employee_cost: OMIT, annualized_revenue_per_employee: OMIT, additional_properties: nil) ⇒ NewDemoApiClient::DealCombinedMetricsResponse



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 178

def initialize(date:, method:, revenue: OMIT, rolling3m_average_revenue: OMIT, annualized_revenue: OMIT,
               rolling3m_annualized_revenue: OMIT, revenue_share_of_top20percent: OMIT, revenue_share_of_top10count: OMIT, average_to_median: OMIT, gini_coefficient: OMIT, lifetime_quick_ratio: OMIT, lifetime_gross_retention: OMIT, lifetime_net_churn: OMIT, cmgr3: OMIT, cmgr6: OMIT, cmgr12: OMIT, yoy: OMIT, operating_margin: OMIT, quarterly_operating_margin: OMIT, gross_margin: OMIT, quarterly_gross_margin: OMIT, magic_number: OMIT, rule_of40: OMIT, burn_multiple: OMIT, acquisition_spend: OMIT, total_opex: OMIT, logo_retention6m: OMIT, logo_retention12m: OMIT, revenue_retention6m: OMIT, revenue_retention12m: OMIT, ltv6m: OMIT, ltv12m: OMIT, ltv6cac: OMIT, ltv12cac: OMIT, gmltv6cac: OMIT, gmltv12cac: OMIT, lifetime_ltv6cac: OMIT, lifetime_ltv12cac: OMIT, lifetime_gmltv6cac: OMIT, lifetime_gmltv12cac: OMIT, cac: OMIT, irr: OMIT, periods_to_payback: OMIT, employee_count: OMIT, cumulative_person_years: OMIT, employee_retention1yr: OMIT, employee_retention2yr: OMIT, average_years_of_experience: OMIT, lifetime_employee_retention: OMIT, percent_employees_sales_and_marketing: OMIT, fully_loaded_employee_cost: OMIT, annualized_revenue_per_employee: OMIT, additional_properties: nil)
  @date = date
  @method = method
  @revenue = revenue if revenue != OMIT
  @rolling3m_average_revenue = rolling3m_average_revenue if rolling3m_average_revenue != OMIT
  @annualized_revenue = annualized_revenue if annualized_revenue != OMIT
  @rolling3m_annualized_revenue = rolling3m_annualized_revenue if rolling3m_annualized_revenue != OMIT
  @revenue_share_of_top20percent = revenue_share_of_top20percent if revenue_share_of_top20percent != OMIT
  @revenue_share_of_top10count = revenue_share_of_top10count if revenue_share_of_top10count != OMIT
  @average_to_median = average_to_median if average_to_median != OMIT
  @gini_coefficient = gini_coefficient if gini_coefficient != OMIT
  @lifetime_quick_ratio = lifetime_quick_ratio if lifetime_quick_ratio != OMIT
  @lifetime_gross_retention = lifetime_gross_retention if lifetime_gross_retention != OMIT
  @lifetime_net_churn = lifetime_net_churn if lifetime_net_churn != OMIT
  @cmgr3 = cmgr3 if cmgr3 != OMIT
  @cmgr6 = cmgr6 if cmgr6 != OMIT
  @cmgr12 = cmgr12 if cmgr12 != OMIT
  @yoy = yoy if yoy != OMIT
  @operating_margin = operating_margin if operating_margin != OMIT
  @quarterly_operating_margin = quarterly_operating_margin if quarterly_operating_margin != OMIT
  @gross_margin = gross_margin if gross_margin != OMIT
  @quarterly_gross_margin = quarterly_gross_margin if quarterly_gross_margin != OMIT
  @magic_number = magic_number if magic_number != OMIT
  @rule_of40 = rule_of40 if rule_of40 != OMIT
  @burn_multiple = burn_multiple if burn_multiple != OMIT
  @acquisition_spend = acquisition_spend if acquisition_spend != OMIT
  @total_opex = total_opex if total_opex != OMIT
  @logo_retention6m = logo_retention6m if logo_retention6m != OMIT
  @logo_retention12m = logo_retention12m if logo_retention12m != OMIT
  @revenue_retention6m = revenue_retention6m if revenue_retention6m != OMIT
  @revenue_retention12m = revenue_retention12m if revenue_retention12m != OMIT
  @ltv6m = ltv6m if ltv6m != OMIT
  @ltv12m = ltv12m if ltv12m != OMIT
  @ltv6cac = ltv6cac if ltv6cac != OMIT
  @ltv12cac = ltv12cac if ltv12cac != OMIT
  @gmltv6cac = gmltv6cac if gmltv6cac != OMIT
  @gmltv12cac = gmltv12cac if gmltv12cac != OMIT
  @lifetime_ltv6cac = lifetime_ltv6cac if lifetime_ltv6cac != OMIT
  @lifetime_ltv12cac = lifetime_ltv12cac if lifetime_ltv12cac != OMIT
  @lifetime_gmltv6cac = lifetime_gmltv6cac if lifetime_gmltv6cac != OMIT
  @lifetime_gmltv12cac = lifetime_gmltv12cac if lifetime_gmltv12cac != OMIT
  @cac = cac if cac != OMIT
  @irr = irr if irr != OMIT
  @periods_to_payback = periods_to_payback if periods_to_payback != OMIT
  @employee_count = employee_count if employee_count != OMIT
  @cumulative_person_years = cumulative_person_years if cumulative_person_years != OMIT
  @employee_retention1yr = employee_retention1yr if employee_retention1yr != OMIT
  @employee_retention2yr = employee_retention2yr if employee_retention2yr != OMIT
  @average_years_of_experience = average_years_of_experience if average_years_of_experience != OMIT
  @lifetime_employee_retention = lifetime_employee_retention if lifetime_employee_retention != OMIT
  if percent_employees_sales_and_marketing != OMIT
    @percent_employees_sales_and_marketing = percent_employees_sales_and_marketing
  end
  @fully_loaded_employee_cost = fully_loaded_employee_cost if fully_loaded_employee_cost != OMIT
  @annualized_revenue_per_employee = annualized_revenue_per_employee if annualized_revenue_per_employee != OMIT
  @additional_properties = additional_properties
  @_field_set = {
    "date": date,
    "method": method,
    "revenue": revenue,
    "rolling_3m_average_revenue": rolling3m_average_revenue,
    "annualized_revenue": annualized_revenue,
    "rolling_3m_annualized_revenue": rolling3m_annualized_revenue,
    "revenue_share_of_top_20_percent": revenue_share_of_top20percent,
    "revenue_share_of_top_10_count": revenue_share_of_top10count,
    "average_to_median": average_to_median,
    "gini_coefficient": gini_coefficient,
    "lifetime_quick_ratio": lifetime_quick_ratio,
    "lifetime_gross_retention": lifetime_gross_retention,
    "lifetime_net_churn": lifetime_net_churn,
    "cmgr3": cmgr3,
    "cmgr6": cmgr6,
    "cmgr12": cmgr12,
    "yoy": yoy,
    "operating_margin": operating_margin,
    "quarterly_operating_margin": quarterly_operating_margin,
    "gross_margin": gross_margin,
    "quarterly_gross_margin": quarterly_gross_margin,
    "magic_number": magic_number,
    "rule_of_40": rule_of40,
    "burn_multiple": burn_multiple,
    "acquisition_spend": acquisition_spend,
    "total_opex": total_opex,
    "logo_retention_6m": logo_retention6m,
    "logo_retention_12m": logo_retention12m,
    "revenue_retention_6m": revenue_retention6m,
    "revenue_retention_12m": revenue_retention12m,
    "ltv_6m": ltv6m,
    "ltv_12m": ltv12m,
    "ltv6_cac": ltv6cac,
    "ltv12_cac": ltv12cac,
    "gmltv6_cac": gmltv6cac,
    "gmltv12_cac": gmltv12cac,
    "lifetime_ltv6_cac": lifetime_ltv6cac,
    "lifetime_ltv12_cac": lifetime_ltv12cac,
    "lifetime_gmltv6_cac": lifetime_gmltv6cac,
    "lifetime_gmltv12_cac": lifetime_gmltv12cac,
    "cac": cac,
    "irr": irr,
    "periods_to_payback": periods_to_payback,
    "employee_count": employee_count,
    "cumulative_person_years": cumulative_person_years,
    "employee_retention_1yr": employee_retention1yr,
    "employee_retention_2yr": employee_retention2yr,
    "average_years_of_experience": average_years_of_experience,
    "lifetime_employee_retention": lifetime_employee_retention,
    "percent_employees_sales_and_marketing": percent_employees_sales_and_marketing,
    "fully_loaded_employee_cost": fully_loaded_employee_cost,
    "annualized_revenue_per_employee": annualized_revenue_per_employee
  }.reject do |_k, v|
    v == OMIT
  end
end

Instance Attribute Details

#acquisition_spend ⇒ Float (readonly)



59
60
61
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 59

def acquisition_spend
  @acquisition_spend
end

#additional_properties ⇒ OpenStruct (readonly)



115
116
117
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 115

def additional_properties
  @additional_properties
end

#annualized_revenue ⇒ Float (readonly)



19
20
21
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 19

def annualized_revenue
  @annualized_revenue
end

#annualized_revenue_per_employee ⇒ Float (readonly)



113
114
115
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 113

def annualized_revenue_per_employee
  @annualized_revenue_per_employee
end

#average_to_median ⇒ Float (readonly)



27
28
29
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 27

def average_to_median
  @average_to_median
end

#average_years_of_experience ⇒ Float (readonly)



105
106
107
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 105

def average_years_of_experience
  @average_years_of_experience
end

#burn_multiple ⇒ Float (readonly)



57
58
59
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 57

def burn_multiple
  @burn_multiple
end

#cac ⇒ Float (readonly)



91
92
93
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 91

def cac
  @cac
end

#cmgr12 ⇒ Float (readonly)



41
42
43
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 41

def cmgr12
  @cmgr12
end

#cmgr3 ⇒ Float (readonly)



37
38
39
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 37

def cmgr3
  @cmgr3
end

#cmgr6 ⇒ Float (readonly)



39
40
41
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 39

def cmgr6
  @cmgr6
end

#cumulative_person_years ⇒ Float (readonly)



99
100
101
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 99

def cumulative_person_years
  @cumulative_person_years
end

#date ⇒ String (readonly)



9
10
11
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 9

def date
  @date
end

#employee_count ⇒ Float (readonly)



97
98
99
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 97

def employee_count
  @employee_count
end

#employee_retention1yr ⇒ Float (readonly)



101
102
103
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 101

def employee_retention1yr
  @employee_retention1yr
end

#employee_retention2yr ⇒ Float (readonly)



103
104
105
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 103

def employee_retention2yr
  @employee_retention2yr
end

#fully_loaded_employee_cost ⇒ Float (readonly)



111
112
113
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 111

def fully_loaded_employee_cost
  @fully_loaded_employee_cost
end

#gini_coefficient ⇒ Float (readonly)



29
30
31
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 29

def gini_coefficient
  @gini_coefficient
end

#gmltv12cac ⇒ Float (readonly)



81
82
83
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 81

def gmltv12cac
  @gmltv12cac
end

#gmltv6cac ⇒ Float (readonly)



79
80
81
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 79

def gmltv6cac
  @gmltv6cac
end

#gross_margin ⇒ Float (readonly)



49
50
51
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 49

def gross_margin
  @gross_margin
end

#irr ⇒ Float (readonly)



93
94
95
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 93

def irr
  @irr
end

#lifetime_employee_retention ⇒ Float (readonly)



107
108
109
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 107

def lifetime_employee_retention
  @lifetime_employee_retention
end

#lifetime_gmltv12cac ⇒ Float (readonly)



89
90
91
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 89

def lifetime_gmltv12cac
  @lifetime_gmltv12cac
end

#lifetime_gmltv6cac ⇒ Float (readonly)



87
88
89
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 87

def lifetime_gmltv6cac
  @lifetime_gmltv6cac
end

#lifetime_gross_retention ⇒ Float (readonly)



33
34
35
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 33

def lifetime_gross_retention
  @lifetime_gross_retention
end

#lifetime_ltv12cac ⇒ Float (readonly)



85
86
87
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 85

def lifetime_ltv12cac
  @lifetime_ltv12cac
end

#lifetime_ltv6cac ⇒ Float (readonly)



83
84
85
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 83

def lifetime_ltv6cac
  @lifetime_ltv6cac
end

#lifetime_net_churn ⇒ Float (readonly)



35
36
37
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 35

def lifetime_net_churn
  @lifetime_net_churn
end

#lifetime_quick_ratio ⇒ Float (readonly)



31
32
33
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 31

def lifetime_quick_ratio
  @lifetime_quick_ratio
end

#logo_retention12m ⇒ Float (readonly)



65
66
67
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 65

def logo_retention12m
  @logo_retention12m
end

#logo_retention6m ⇒ Float (readonly)



63
64
65
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 63

def logo_retention6m
  @logo_retention6m
end

#ltv12cac ⇒ Float (readonly)



77
78
79
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 77

def ltv12cac
  @ltv12cac
end

#ltv12m ⇒ Float (readonly)



73
74
75
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 73

def ltv12m
  @ltv12m
end

#ltv6cac ⇒ Float (readonly)



75
76
77
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 75

def ltv6cac
  @ltv6cac
end

#ltv6m ⇒ Float (readonly)



71
72
73
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 71

def ltv6m
  @ltv6m
end

#magic_number ⇒ Float (readonly)



53
54
55
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 53

def magic_number
  @magic_number
end

#method ⇒ String (readonly)



13
14
15
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 13

def method
  @method
end

#operating_margin ⇒ Float (readonly)



45
46
47
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 45

def operating_margin
  @operating_margin
end

#percent_employees_sales_and_marketing ⇒ Float (readonly)



109
110
111
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 109

def percent_employees_sales_and_marketing
  @percent_employees_sales_and_marketing
end

#periods_to_payback ⇒ Float (readonly)



95
96
97
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 95

def periods_to_payback
  @periods_to_payback
end

#quarterly_gross_margin ⇒ Float (readonly)



51
52
53
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 51

def quarterly_gross_margin
  @quarterly_gross_margin
end

#quarterly_operating_margin ⇒ Float (readonly)



47
48
49
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 47

def quarterly_operating_margin
  @quarterly_operating_margin
end

#revenue ⇒ Float (readonly)



15
16
17
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 15

def revenue
  @revenue
end

#revenue_retention12m ⇒ Float (readonly)



69
70
71
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 69

def revenue_retention12m
  @revenue_retention12m
end

#revenue_retention6m ⇒ Float (readonly)



67
68
69
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 67

def revenue_retention6m
  @revenue_retention6m
end

#revenue_share_of_top10count ⇒ Float (readonly)



25
26
27
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 25

def revenue_share_of_top10count
  @revenue_share_of_top10count
end

#revenue_share_of_top20percent ⇒ Float (readonly)



23
24
25
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 23

def revenue_share_of_top20percent
  @revenue_share_of_top20percent
end

#rolling3m_annualized_revenue ⇒ Float (readonly)



21
22
23
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 21

def rolling3m_annualized_revenue
  @rolling3m_annualized_revenue
end

#rolling3m_average_revenue ⇒ Float (readonly)



17
18
19
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 17

def rolling3m_average_revenue
  @rolling3m_average_revenue
end

#rule_of40 ⇒ Float (readonly)



55
56
57
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 55

def rule_of40
  @rule_of40
end

#total_opex ⇒ Float (readonly)



61
62
63
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 61

def total_opex
  @total_opex
end

#yoy ⇒ Float (readonly)



43
44
45
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 43

def yoy
  @yoy
end

Class Method Details

.from_json(json_object:) ⇒ NewDemoApiClient::DealCombinedMetricsResponse

Deserialize a JSON object to an instance of DealCombinedMetricsResponse



297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 297

def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  parsed_json = JSON.parse(json_object)
  date = parsed_json["date"]
  method = parsed_json["method"]
  revenue = parsed_json["revenue"]
  rolling3m_average_revenue = parsed_json["rolling_3m_average_revenue"]
  annualized_revenue = parsed_json["annualized_revenue"]
  rolling3m_annualized_revenue = parsed_json["rolling_3m_annualized_revenue"]
  revenue_share_of_top20percent = parsed_json["revenue_share_of_top_20_percent"]
  revenue_share_of_top10count = parsed_json["revenue_share_of_top_10_count"]
  average_to_median = parsed_json["average_to_median"]
  gini_coefficient = parsed_json["gini_coefficient"]
  lifetime_quick_ratio = parsed_json["lifetime_quick_ratio"]
  lifetime_gross_retention = parsed_json["lifetime_gross_retention"]
  lifetime_net_churn = parsed_json["lifetime_net_churn"]
  cmgr3 = parsed_json["cmgr3"]
  cmgr6 = parsed_json["cmgr6"]
  cmgr12 = parsed_json["cmgr12"]
  yoy = parsed_json["yoy"]
  operating_margin = parsed_json["operating_margin"]
  quarterly_operating_margin = parsed_json["quarterly_operating_margin"]
  gross_margin = parsed_json["gross_margin"]
  quarterly_gross_margin = parsed_json["quarterly_gross_margin"]
  magic_number = parsed_json["magic_number"]
  rule_of40 = parsed_json["rule_of_40"]
  burn_multiple = parsed_json["burn_multiple"]
  acquisition_spend = parsed_json["acquisition_spend"]
  total_opex = parsed_json["total_opex"]
  logo_retention6m = parsed_json["logo_retention_6m"]
  logo_retention12m = parsed_json["logo_retention_12m"]
  revenue_retention6m = parsed_json["revenue_retention_6m"]
  revenue_retention12m = parsed_json["revenue_retention_12m"]
  ltv6m = parsed_json["ltv_6m"]
  ltv12m = parsed_json["ltv_12m"]
  ltv6cac = parsed_json["ltv6_cac"]
  ltv12cac = parsed_json["ltv12_cac"]
  gmltv6cac = parsed_json["gmltv6_cac"]
  gmltv12cac = parsed_json["gmltv12_cac"]
  lifetime_ltv6cac = parsed_json["lifetime_ltv6_cac"]
  lifetime_ltv12cac = parsed_json["lifetime_ltv12_cac"]
  lifetime_gmltv6cac = parsed_json["lifetime_gmltv6_cac"]
  lifetime_gmltv12cac = parsed_json["lifetime_gmltv12_cac"]
  cac = parsed_json["cac"]
  irr = parsed_json["irr"]
  periods_to_payback = parsed_json["periods_to_payback"]
  employee_count = parsed_json["employee_count"]
  cumulative_person_years = parsed_json["cumulative_person_years"]
  employee_retention1yr = parsed_json["employee_retention_1yr"]
  employee_retention2yr = parsed_json["employee_retention_2yr"]
  average_years_of_experience = parsed_json["average_years_of_experience"]
  lifetime_employee_retention = parsed_json["lifetime_employee_retention"]
  percent_employees_sales_and_marketing = parsed_json["percent_employees_sales_and_marketing"]
  fully_loaded_employee_cost = parsed_json["fully_loaded_employee_cost"]
  annualized_revenue_per_employee = parsed_json["annualized_revenue_per_employee"]
  new(
    date: date,
    method: method,
    revenue: revenue,
    rolling3m_average_revenue: rolling3m_average_revenue,
    annualized_revenue: annualized_revenue,
    rolling3m_annualized_revenue: rolling3m_annualized_revenue,
    revenue_share_of_top20percent: revenue_share_of_top20percent,
    revenue_share_of_top10count: revenue_share_of_top10count,
    average_to_median: average_to_median,
    gini_coefficient: gini_coefficient,
    lifetime_quick_ratio: lifetime_quick_ratio,
    lifetime_gross_retention: lifetime_gross_retention,
    lifetime_net_churn: lifetime_net_churn,
    cmgr3: cmgr3,
    cmgr6: cmgr6,
    cmgr12: cmgr12,
    yoy: yoy,
    operating_margin: operating_margin,
    quarterly_operating_margin: quarterly_operating_margin,
    gross_margin: gross_margin,
    quarterly_gross_margin: quarterly_gross_margin,
    magic_number: magic_number,
    rule_of40: rule_of40,
    burn_multiple: burn_multiple,
    acquisition_spend: acquisition_spend,
    total_opex: total_opex,
    logo_retention6m: logo_retention6m,
    logo_retention12m: logo_retention12m,
    revenue_retention6m: revenue_retention6m,
    revenue_retention12m: revenue_retention12m,
    ltv6m: ltv6m,
    ltv12m: ltv12m,
    ltv6cac: ltv6cac,
    ltv12cac: ltv12cac,
    gmltv6cac: gmltv6cac,
    gmltv12cac: gmltv12cac,
    lifetime_ltv6cac: lifetime_ltv6cac,
    lifetime_ltv12cac: lifetime_ltv12cac,
    lifetime_gmltv6cac: lifetime_gmltv6cac,
    lifetime_gmltv12cac: lifetime_gmltv12cac,
    cac: cac,
    irr: irr,
    periods_to_payback: periods_to_payback,
    employee_count: employee_count,
    cumulative_person_years: cumulative_person_years,
    employee_retention1yr: employee_retention1yr,
    employee_retention2yr: employee_retention2yr,
    average_years_of_experience: average_years_of_experience,
    lifetime_employee_retention: lifetime_employee_retention,
    percent_employees_sales_and_marketing: percent_employees_sales_and_marketing,
    fully_loaded_employee_cost: fully_loaded_employee_cost,
    annualized_revenue_per_employee: annualized_revenue_per_employee,
    additional_properties: struct
  )
end

.validate_raw(obj:) ⇒ Void

Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.



422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 422

def self.validate_raw(obj:)
  obj.date.is_a?(String) != false || raise("Passed value for field obj.date is not the expected type, validation failed.")
  obj.method.is_a?(String) != false || raise("Passed value for field obj.method is not the expected type, validation failed.")
  obj.revenue&.is_a?(Float) != false || raise("Passed value for field obj.revenue is not the expected type, validation failed.")
  obj.rolling3m_average_revenue&.is_a?(Float) != false || raise("Passed value for field obj.rolling3m_average_revenue is not the expected type, validation failed.")
  obj.annualized_revenue&.is_a?(Float) != false || raise("Passed value for field obj.annualized_revenue is not the expected type, validation failed.")
  obj.rolling3m_annualized_revenue&.is_a?(Float) != false || raise("Passed value for field obj.rolling3m_annualized_revenue is not the expected type, validation failed.")
  obj.revenue_share_of_top20percent&.is_a?(Float) != false || raise("Passed value for field obj.revenue_share_of_top20percent is not the expected type, validation failed.")
  obj.revenue_share_of_top10count&.is_a?(Float) != false || raise("Passed value for field obj.revenue_share_of_top10count is not the expected type, validation failed.")
  obj.average_to_median&.is_a?(Float) != false || raise("Passed value for field obj.average_to_median is not the expected type, validation failed.")
  obj.gini_coefficient&.is_a?(Float) != false || raise("Passed value for field obj.gini_coefficient is not the expected type, validation failed.")
  obj.lifetime_quick_ratio&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_quick_ratio is not the expected type, validation failed.")
  obj.lifetime_gross_retention&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_gross_retention is not the expected type, validation failed.")
  obj.lifetime_net_churn&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_net_churn is not the expected type, validation failed.")
  obj.cmgr3&.is_a?(Float) != false || raise("Passed value for field obj.cmgr3 is not the expected type, validation failed.")
  obj.cmgr6&.is_a?(Float) != false || raise("Passed value for field obj.cmgr6 is not the expected type, validation failed.")
  obj.cmgr12&.is_a?(Float) != false || raise("Passed value for field obj.cmgr12 is not the expected type, validation failed.")
  obj.yoy&.is_a?(Float) != false || raise("Passed value for field obj.yoy is not the expected type, validation failed.")
  obj.operating_margin&.is_a?(Float) != false || raise("Passed value for field obj.operating_margin is not the expected type, validation failed.")
  obj.quarterly_operating_margin&.is_a?(Float) != false || raise("Passed value for field obj.quarterly_operating_margin is not the expected type, validation failed.")
  obj.gross_margin&.is_a?(Float) != false || raise("Passed value for field obj.gross_margin is not the expected type, validation failed.")
  obj.quarterly_gross_margin&.is_a?(Float) != false || raise("Passed value for field obj.quarterly_gross_margin is not the expected type, validation failed.")
  obj.magic_number&.is_a?(Float) != false || raise("Passed value for field obj.magic_number is not the expected type, validation failed.")
  obj.rule_of40&.is_a?(Float) != false || raise("Passed value for field obj.rule_of40 is not the expected type, validation failed.")
  obj.burn_multiple&.is_a?(Float) != false || raise("Passed value for field obj.burn_multiple is not the expected type, validation failed.")
  obj.acquisition_spend&.is_a?(Float) != false || raise("Passed value for field obj.acquisition_spend is not the expected type, validation failed.")
  obj.total_opex&.is_a?(Float) != false || raise("Passed value for field obj.total_opex is not the expected type, validation failed.")
  obj.logo_retention6m&.is_a?(Float) != false || raise("Passed value for field obj.logo_retention6m is not the expected type, validation failed.")
  obj.logo_retention12m&.is_a?(Float) != false || raise("Passed value for field obj.logo_retention12m is not the expected type, validation failed.")
  obj.revenue_retention6m&.is_a?(Float) != false || raise("Passed value for field obj.revenue_retention6m is not the expected type, validation failed.")
  obj.revenue_retention12m&.is_a?(Float) != false || raise("Passed value for field obj.revenue_retention12m is not the expected type, validation failed.")
  obj.ltv6m&.is_a?(Float) != false || raise("Passed value for field obj.ltv6m is not the expected type, validation failed.")
  obj.ltv12m&.is_a?(Float) != false || raise("Passed value for field obj.ltv12m is not the expected type, validation failed.")
  obj.ltv6cac&.is_a?(Float) != false || raise("Passed value for field obj.ltv6cac is not the expected type, validation failed.")
  obj.ltv12cac&.is_a?(Float) != false || raise("Passed value for field obj.ltv12cac is not the expected type, validation failed.")
  obj.gmltv6cac&.is_a?(Float) != false || raise("Passed value for field obj.gmltv6cac is not the expected type, validation failed.")
  obj.gmltv12cac&.is_a?(Float) != false || raise("Passed value for field obj.gmltv12cac is not the expected type, validation failed.")
  obj.lifetime_ltv6cac&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_ltv6cac is not the expected type, validation failed.")
  obj.lifetime_ltv12cac&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_ltv12cac is not the expected type, validation failed.")
  obj.lifetime_gmltv6cac&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_gmltv6cac is not the expected type, validation failed.")
  obj.lifetime_gmltv12cac&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_gmltv12cac is not the expected type, validation failed.")
  obj.cac&.is_a?(Float) != false || raise("Passed value for field obj.cac is not the expected type, validation failed.")
  obj.irr&.is_a?(Float) != false || raise("Passed value for field obj.irr is not the expected type, validation failed.")
  obj.periods_to_payback&.is_a?(Float) != false || raise("Passed value for field obj.periods_to_payback is not the expected type, validation failed.")
  obj.employee_count&.is_a?(Float) != false || raise("Passed value for field obj.employee_count is not the expected type, validation failed.")
  obj.cumulative_person_years&.is_a?(Float) != false || raise("Passed value for field obj.cumulative_person_years is not the expected type, validation failed.")
  obj.employee_retention1yr&.is_a?(Float) != false || raise("Passed value for field obj.employee_retention1yr is not the expected type, validation failed.")
  obj.employee_retention2yr&.is_a?(Float) != false || raise("Passed value for field obj.employee_retention2yr is not the expected type, validation failed.")
  obj.average_years_of_experience&.is_a?(Float) != false || raise("Passed value for field obj.average_years_of_experience is not the expected type, validation failed.")
  obj.lifetime_employee_retention&.is_a?(Float) != false || raise("Passed value for field obj.lifetime_employee_retention is not the expected type, validation failed.")
  obj.percent_employees_sales_and_marketing&.is_a?(Float) != false || raise("Passed value for field obj.percent_employees_sales_and_marketing is not the expected type, validation failed.")
  obj.fully_loaded_employee_cost&.is_a?(Float) != false || raise("Passed value for field obj.fully_loaded_employee_cost is not the expected type, validation failed.")
  obj.annualized_revenue_per_employee&.is_a?(Float) != false || raise("Passed value for field obj.annualized_revenue_per_employee is not the expected type, validation failed.")
end

Instance Method Details

#to_json(*_args) ⇒ String

Serialize an instance of DealCombinedMetricsResponse to a JSON object



412
413
414
# File 'lib/test_sdk/types/deal_combined_metrics_response.rb', line 412

def to_json(*_args)
  @_field_set&.to_json
end