Class: Hook0::Generated::QuotasResponseLimits
- Inherits:
-
Object
- Object
- Hook0::Generated::QuotasResponseLimits
- Defined in:
- lib/hook0/generated/models.rb
Overview
The QuotasResponseLimits the API declares.
Instance Attribute Summary collapse
-
#global_applications_per_organization_limit ⇒ Object
readonly
Returns the value of attribute global_applications_per_organization_limit.
-
#global_days_of_events_retention_limit ⇒ Object
readonly
Returns the value of attribute global_days_of_events_retention_limit.
-
#global_event_types_per_application_limit ⇒ Object
readonly
Returns the value of attribute global_event_types_per_application_limit.
-
#global_events_per_day_limit ⇒ Object
readonly
Returns the value of attribute global_events_per_day_limit.
-
#global_members_per_organization_limit ⇒ Object
readonly
Returns the value of attribute global_members_per_organization_limit.
-
#global_subscriptions_per_application_limit ⇒ Object
readonly
Returns the value of attribute global_subscriptions_per_application_limit.
Class Method Summary collapse
-
.from_json(value) ⇒ QuotasResponseLimits
Read one out of what the API answered.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
(also: #eql?)
Whether that value carries the same members as this one.
-
#hash ⇒ Integer
A value two equal instances share, so that either may key a hash.
-
#initialize(global_applications_per_organization_limit:, global_days_of_events_retention_limit:, global_event_types_per_application_limit:, global_events_per_day_limit:, global_members_per_organization_limit:, global_subscriptions_per_application_limit:) ⇒ QuotasResponseLimits
constructor
A new instance of QuotasResponseLimits.
-
#to_h ⇒ Hash{String => Object}
Write one back the way the API reads it.
Constructor Details
#initialize(global_applications_per_organization_limit:, global_days_of_events_retention_limit:, global_event_types_per_application_limit:, global_events_per_day_limit:, global_members_per_organization_limit:, global_subscriptions_per_application_limit:) ⇒ QuotasResponseLimits
Returns a new instance of QuotasResponseLimits.
2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 |
# File 'lib/hook0/generated/models.rb', line 2117 def initialize( global_applications_per_organization_limit:, global_days_of_events_retention_limit:, global_event_types_per_application_limit:, global_events_per_day_limit:, global_members_per_organization_limit:, global_subscriptions_per_application_limit: ) @global_applications_per_organization_limit = global_applications_per_organization_limit @global_days_of_events_retention_limit = global_days_of_events_retention_limit @global_event_types_per_application_limit = global_event_types_per_application_limit @global_events_per_day_limit = global_events_per_day_limit @global_members_per_organization_limit = global_members_per_organization_limit @global_subscriptions_per_application_limit = global_subscriptions_per_application_limit freeze end |
Instance Attribute Details
#global_applications_per_organization_limit ⇒ Object (readonly)
Returns the value of attribute global_applications_per_organization_limit.
2102 2103 2104 |
# File 'lib/hook0/generated/models.rb', line 2102 def global_applications_per_organization_limit @global_applications_per_organization_limit end |
#global_days_of_events_retention_limit ⇒ Object (readonly)
Returns the value of attribute global_days_of_events_retention_limit.
2102 2103 2104 |
# File 'lib/hook0/generated/models.rb', line 2102 def global_days_of_events_retention_limit @global_days_of_events_retention_limit end |
#global_event_types_per_application_limit ⇒ Object (readonly)
Returns the value of attribute global_event_types_per_application_limit.
2102 2103 2104 |
# File 'lib/hook0/generated/models.rb', line 2102 def global_event_types_per_application_limit @global_event_types_per_application_limit end |
#global_events_per_day_limit ⇒ Object (readonly)
Returns the value of attribute global_events_per_day_limit.
2102 2103 2104 |
# File 'lib/hook0/generated/models.rb', line 2102 def global_events_per_day_limit @global_events_per_day_limit end |
#global_members_per_organization_limit ⇒ Object (readonly)
Returns the value of attribute global_members_per_organization_limit.
2102 2103 2104 |
# File 'lib/hook0/generated/models.rb', line 2102 def global_members_per_organization_limit @global_members_per_organization_limit end |
#global_subscriptions_per_application_limit ⇒ Object (readonly)
Returns the value of attribute global_subscriptions_per_application_limit.
2102 2103 2104 |
# File 'lib/hook0/generated/models.rb', line 2102 def global_subscriptions_per_application_limit @global_subscriptions_per_application_limit end |
Class Method Details
.from_json(value) ⇒ QuotasResponseLimits
Read one out of what the API answered.
2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 |
# File 'lib/hook0/generated/models.rb', line 2138 def self.from_json(value) fields = Runtime.as_fields(value, "QuotasResponseLimits") new( global_applications_per_organization_limit: Runtime.read( fields, "global_applications_per_organization_limit", Runtime::INTEGER ), global_days_of_events_retention_limit: Runtime.read( fields, "global_days_of_events_retention_limit", Runtime::INTEGER ), global_event_types_per_application_limit: Runtime.read( fields, "global_event_types_per_application_limit", Runtime::INTEGER ), global_events_per_day_limit: Runtime.read(fields, "global_events_per_day_limit", Runtime::INTEGER), global_members_per_organization_limit: Runtime.read( fields, "global_members_per_organization_limit", Runtime::INTEGER ), global_subscriptions_per_application_limit: Runtime.read( fields, "global_subscriptions_per_application_limit", Runtime::INTEGER ) ) end |
Instance Method Details
#==(other) ⇒ Boolean Also known as: eql?
Whether that value carries the same members as this one.
2188 2189 2190 |
# File 'lib/hook0/generated/models.rb', line 2188 def ==(other) other.is_a?(QuotasResponseLimits) && to_h == other.to_h end |
#hash ⇒ Integer
A value two equal instances share, so that either may key a hash.
2196 2197 2198 |
# File 'lib/hook0/generated/models.rb', line 2196 def hash to_h.hash end |
#to_h ⇒ Hash{String => Object}
Write one back the way the API reads it.
2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 |
# File 'lib/hook0/generated/models.rb', line 2173 def to_h out = {} out["global_applications_per_organization_limit"] = @global_applications_per_organization_limit out["global_days_of_events_retention_limit"] = @global_days_of_events_retention_limit out["global_event_types_per_application_limit"] = @global_event_types_per_application_limit out["global_events_per_day_limit"] = @global_events_per_day_limit out["global_members_per_organization_limit"] = @global_members_per_organization_limit out["global_subscriptions_per_application_limit"] = @global_subscriptions_per_application_limit out end |