Class: NewDemoApiClient::BenchmarkQuantile
- Inherits:
-
Object
- Object
- NewDemoApiClient::BenchmarkQuantile
- Defined in:
- lib/test_sdk/types/benchmark_quantile.rb
Constant Summary collapse
- OMIT =
Object.new
Instance Attribute Summary collapse
-
#acquisition_spend ⇒ Float
readonly
Acquisition Spend.
-
#additional_properties ⇒ OpenStruct
readonly
Additional properties unmapped to the current class definition.
-
#annualized_revenue ⇒ Float
readonly
Annualized Revenue.
-
#annualized_revenue_per_employee ⇒ Float
readonly
Annualized Revenue per Employee.
-
#average_to_median ⇒ Float
readonly
Average to Median Revenue.
-
#average_years_of_experience ⇒ Float
readonly
Average Employee Experience (Years).
-
#burn_multiple ⇒ Float
readonly
Burn Multiple.
-
#cac ⇒ Float
readonly
CAC.
-
#cmgr12 ⇒ Float
readonly
CMGR12.
-
#cmgr3 ⇒ Float
readonly
CMGR3.
-
#cmgr6 ⇒ Float
readonly
CMGR6.
-
#cumulative_person_years ⇒ Float
readonly
Cumulative Years of Effort.
-
#employee_count ⇒ Float
readonly
Number of Employees.
-
#employee_retention1yr ⇒ Float
readonly
Employee Retention (1Y).
-
#employee_retention2yr ⇒ Float
readonly
Employee Retention (2Y).
-
#fully_loaded_employee_cost ⇒ Float
readonly
Fully-Loaded Employee Cost.
-
#gini_coefficient ⇒ Float
readonly
Gini Coefficient.
-
#gmltv12cac ⇒ Float
readonly
GmLTV12/CAC.
-
#gmltv6cac ⇒ Float
readonly
GmLTV6/CAC.
-
#gross_margin ⇒ Float
readonly
Gross Margin.
-
#irr ⇒ Float
readonly
IRR.
-
#lifetime_employee_retention ⇒ Float
readonly
Lifetime Employee Retention.
-
#lifetime_gmltv12cac ⇒ Float
readonly
Average gmLTV12/CAC.
-
#lifetime_gmltv6cac ⇒ Float
readonly
Average gmLTV6/CAC.
-
#lifetime_gross_retention ⇒ Float
readonly
Average Gross Retention.
-
#lifetime_ltv12cac ⇒ Float
readonly
Average LTV12/CAC.
-
#lifetime_ltv6cac ⇒ Float
readonly
Average LTV6/CAC.
-
#lifetime_net_churn ⇒ Float
readonly
Average Net Churn.
-
#lifetime_quick_ratio ⇒ Float
readonly
Average Quick Ratio.
-
#logo_retention12m ⇒ Float
readonly
Logo Retention (12M).
-
#logo_retention6m ⇒ Float
readonly
Logo Retention (6M).
-
#ltv12cac ⇒ Float
readonly
LTV12/CAC.
-
#ltv12m ⇒ Float
readonly
LTV12.
-
#ltv6cac ⇒ Float
readonly
LTV6/CAC.
-
#ltv6m ⇒ Float
readonly
LTV6.
-
#magic_number ⇒ Float
readonly
Magic Number.
-
#operating_margin ⇒ Float
readonly
Operating Margin.
-
#percent_employees_sales_and_marketing ⇒ Float
readonly
Sales + Marketing (% Employees).
-
#periods_to_payback ⇒ Float
readonly
Months to Payback.
-
#quantile ⇒ Float
readonly
Quantile.
-
#quarterly_gross_margin ⇒ Float
readonly
Gross Margin (Rolling Q).
-
#quarterly_operating_margin ⇒ Float
readonly
Operating Margin (Rolling Q).
-
#revenue ⇒ Float
readonly
Revenue.
-
#revenue_retention12m ⇒ Float
readonly
Revenue Retention (12M).
-
#revenue_retention6m ⇒ Float
readonly
Revenue Retention (6M).
-
#revenue_share_of_top10count ⇒ Float
readonly
Revenue Share of Top 10 Users.
-
#revenue_share_of_top20percent ⇒ Float
readonly
Revenue Share of Top 20%.
-
#rolling3m_annualized_revenue ⇒ Float
readonly
Annualized Revenue (Rolling Q).
-
#rolling3m_average_revenue ⇒ Float
readonly
Average Revenue (Rolling Q).
-
#rule_of40 ⇒ Float
readonly
Rule of 40.
-
#total_opex ⇒ Float
readonly
Total OPEX.
-
#yoy ⇒ Float
readonly
YoY Growth.
Class Method Summary collapse
-
.from_json(json_object:) ⇒ NewDemoApiClient::BenchmarkQuantile
Deserialize a JSON object to an instance of BenchmarkQuantile.
-
.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.
Instance Method Summary collapse
- #initialize(quantile:, 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::BenchmarkQuantile constructor
-
#to_json(*_args) ⇒ String
Serialize an instance of BenchmarkQuantile to a JSON object.
Constructor Details
#initialize(quantile:, 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::BenchmarkQuantile
171 172 173 174 175 176 177 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 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 171 def initialize(quantile:, 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) @quantile = quantile @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 = if != OMIT @quarterly_operating_margin = if != 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 = { "quantile": quantile, "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": , "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)
Returns Acquisition Spend.
55 56 57 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 55 def acquisition_spend @acquisition_spend end |
#additional_properties ⇒ OpenStruct (readonly)
Returns Additional properties unmapped to the current class definition.
111 112 113 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 111 def additional_properties @additional_properties end |
#annualized_revenue ⇒ Float (readonly)
Returns Annualized Revenue.
15 16 17 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 15 def annualized_revenue @annualized_revenue end |
#annualized_revenue_per_employee ⇒ Float (readonly)
Returns Annualized Revenue per Employee.
109 110 111 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 109 def annualized_revenue_per_employee @annualized_revenue_per_employee end |
#average_to_median ⇒ Float (readonly)
Returns Average to Median Revenue.
23 24 25 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 23 def average_to_median @average_to_median end |
#average_years_of_experience ⇒ Float (readonly)
Returns Average Employee Experience (Years).
101 102 103 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 101 def average_years_of_experience @average_years_of_experience end |
#burn_multiple ⇒ Float (readonly)
Returns Burn Multiple.
53 54 55 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 53 def burn_multiple @burn_multiple end |
#cac ⇒ Float (readonly)
Returns CAC.
87 88 89 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 87 def cac @cac end |
#cmgr12 ⇒ Float (readonly)
Returns CMGR12.
37 38 39 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 37 def cmgr12 @cmgr12 end |
#cmgr3 ⇒ Float (readonly)
Returns CMGR3.
33 34 35 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 33 def cmgr3 @cmgr3 end |
#cmgr6 ⇒ Float (readonly)
Returns CMGR6.
35 36 37 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 35 def cmgr6 @cmgr6 end |
#cumulative_person_years ⇒ Float (readonly)
Returns Cumulative Years of Effort.
95 96 97 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 95 def cumulative_person_years @cumulative_person_years end |
#employee_count ⇒ Float (readonly)
Returns Number of Employees.
93 94 95 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 93 def employee_count @employee_count end |
#employee_retention1yr ⇒ Float (readonly)
Returns Employee Retention (1Y).
97 98 99 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 97 def employee_retention1yr @employee_retention1yr end |
#employee_retention2yr ⇒ Float (readonly)
Returns Employee Retention (2Y).
99 100 101 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 99 def employee_retention2yr @employee_retention2yr end |
#fully_loaded_employee_cost ⇒ Float (readonly)
Returns Fully-Loaded Employee Cost.
107 108 109 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 107 def fully_loaded_employee_cost @fully_loaded_employee_cost end |
#gini_coefficient ⇒ Float (readonly)
Returns Gini Coefficient.
25 26 27 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 25 def gini_coefficient @gini_coefficient end |
#gmltv12cac ⇒ Float (readonly)
Returns gmLTV12/CAC.
77 78 79 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 77 def gmltv12cac @gmltv12cac end |
#gmltv6cac ⇒ Float (readonly)
Returns gmLTV6/CAC.
75 76 77 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 75 def gmltv6cac @gmltv6cac end |
#gross_margin ⇒ Float (readonly)
Returns Gross Margin.
45 46 47 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 45 def gross_margin @gross_margin end |
#irr ⇒ Float (readonly)
Returns IRR.
89 90 91 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 89 def irr @irr end |
#lifetime_employee_retention ⇒ Float (readonly)
Returns Lifetime Employee Retention.
103 104 105 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 103 def lifetime_employee_retention @lifetime_employee_retention end |
#lifetime_gmltv12cac ⇒ Float (readonly)
Returns Average gmLTV12/CAC.
85 86 87 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 85 def lifetime_gmltv12cac @lifetime_gmltv12cac end |
#lifetime_gmltv6cac ⇒ Float (readonly)
Returns Average gmLTV6/CAC.
83 84 85 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 83 def lifetime_gmltv6cac @lifetime_gmltv6cac end |
#lifetime_gross_retention ⇒ Float (readonly)
Returns Average Gross Retention.
29 30 31 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 29 def lifetime_gross_retention @lifetime_gross_retention end |
#lifetime_ltv12cac ⇒ Float (readonly)
Returns Average LTV12/CAC.
81 82 83 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 81 def lifetime_ltv12cac @lifetime_ltv12cac end |
#lifetime_ltv6cac ⇒ Float (readonly)
Returns Average LTV6/CAC.
79 80 81 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 79 def lifetime_ltv6cac @lifetime_ltv6cac end |
#lifetime_net_churn ⇒ Float (readonly)
Returns Average Net Churn.
31 32 33 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 31 def lifetime_net_churn @lifetime_net_churn end |
#lifetime_quick_ratio ⇒ Float (readonly)
Returns Average Quick Ratio.
27 28 29 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 27 def lifetime_quick_ratio @lifetime_quick_ratio end |
#logo_retention12m ⇒ Float (readonly)
Returns Logo Retention (12M).
61 62 63 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 61 def logo_retention12m @logo_retention12m end |
#logo_retention6m ⇒ Float (readonly)
Returns Logo Retention (6M).
59 60 61 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 59 def logo_retention6m @logo_retention6m end |
#ltv12cac ⇒ Float (readonly)
Returns LTV12/CAC.
73 74 75 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 73 def ltv12cac @ltv12cac end |
#ltv12m ⇒ Float (readonly)
Returns LTV12.
69 70 71 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 69 def ltv12m @ltv12m end |
#ltv6cac ⇒ Float (readonly)
Returns LTV6/CAC.
71 72 73 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 71 def ltv6cac @ltv6cac end |
#ltv6m ⇒ Float (readonly)
Returns LTV6.
67 68 69 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 67 def ltv6m @ltv6m end |
#magic_number ⇒ Float (readonly)
Returns Magic Number.
49 50 51 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 49 def magic_number @magic_number end |
#operating_margin ⇒ Float (readonly)
Returns Operating Margin.
41 42 43 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 41 def @operating_margin end |
#percent_employees_sales_and_marketing ⇒ Float (readonly)
Returns Sales + Marketing (% Employees).
105 106 107 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 105 def percent_employees_sales_and_marketing @percent_employees_sales_and_marketing end |
#periods_to_payback ⇒ Float (readonly)
Returns Months to Payback.
91 92 93 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 91 def periods_to_payback @periods_to_payback end |
#quantile ⇒ Float (readonly)
Returns Quantile.
9 10 11 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 9 def quantile @quantile end |
#quarterly_gross_margin ⇒ Float (readonly)
Returns Gross Margin (Rolling Q).
47 48 49 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 47 def quarterly_gross_margin @quarterly_gross_margin end |
#quarterly_operating_margin ⇒ Float (readonly)
Returns Operating Margin (Rolling Q).
43 44 45 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 43 def @quarterly_operating_margin end |
#revenue ⇒ Float (readonly)
Returns Revenue.
11 12 13 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 11 def revenue @revenue end |
#revenue_retention12m ⇒ Float (readonly)
Returns Revenue Retention (12M).
65 66 67 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 65 def revenue_retention12m @revenue_retention12m end |
#revenue_retention6m ⇒ Float (readonly)
Returns Revenue Retention (6M).
63 64 65 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 63 def revenue_retention6m @revenue_retention6m end |
#revenue_share_of_top10count ⇒ Float (readonly)
Returns Revenue Share of Top 10 Users.
21 22 23 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 21 def revenue_share_of_top10count @revenue_share_of_top10count end |
#revenue_share_of_top20percent ⇒ Float (readonly)
Returns Revenue Share of Top 20%.
19 20 21 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 19 def revenue_share_of_top20percent @revenue_share_of_top20percent end |
#rolling3m_annualized_revenue ⇒ Float (readonly)
Returns Annualized Revenue (Rolling Q).
17 18 19 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 17 def rolling3m_annualized_revenue @rolling3m_annualized_revenue end |
#rolling3m_average_revenue ⇒ Float (readonly)
Returns Average Revenue (Rolling Q).
13 14 15 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 13 def rolling3m_average_revenue @rolling3m_average_revenue end |
#rule_of40 ⇒ Float (readonly)
Returns Rule of 40.
51 52 53 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 51 def rule_of40 @rule_of40 end |
#total_opex ⇒ Float (readonly)
Returns Total OPEX.
57 58 59 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 57 def total_opex @total_opex end |
#yoy ⇒ Float (readonly)
Returns YoY Growth.
39 40 41 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 39 def yoy @yoy end |
Class Method Details
.from_json(json_object:) ⇒ NewDemoApiClient::BenchmarkQuantile
Deserialize a JSON object to an instance of BenchmarkQuantile
288 289 290 291 292 293 294 295 296 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 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 288 def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) quantile = parsed_json["quantile"] 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"] = parsed_json["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( quantile: quantile, 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: , 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.
411 412 413 414 415 416 417 418 419 420 421 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 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 411 def self.validate_raw(obj:) obj.quantile.is_a?(Float) != false || raise("Passed value for field obj.quantile 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.&.is_a?(Float) != false || raise("Passed value for field obj.operating_margin is not the expected type, validation failed.") obj.&.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 BenchmarkQuantile to a JSON object
401 402 403 |
# File 'lib/test_sdk/types/benchmark_quantile.rb', line 401 def to_json(*_args) @_field_set&.to_json end |