Class: Imagekitio::Models::Accounts::UsageAnalyticsResponse::ErrorReason

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/accounts/usage_analytics_response.rb,
sig/imagekitio/models/accounts/usage_analytics_response.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeErrorReason

Returns a new instance of ErrorReason.

Parameters:

  • name: (String)
  • request_count: (Float)


305
# File 'sig/imagekitio/models/accounts/usage_analytics_response.rbs', line 305

def initialize: (name: String, request_count: Float) -> void

Instance Attribute Details

#nameString

Description of the error reason.

Parameters:

  • value (String)

Returns:

  • (String)


465
# File 'lib/imagekitio/models/accounts/usage_analytics_response.rb', line 465

required :name, String

#request_countFloat

Number of requests that failed with this error reason.

Parameters:

  • value (Float)

Returns:

  • (Float)


471
# File 'lib/imagekitio/models/accounts/usage_analytics_response.rb', line 471

required :request_count, Float, api_name: :requestCount

Instance Method Details

#to_hash{ name: String, request_count: Float }

Returns:

  • ({ name: String, request_count: Float })


307
# File 'sig/imagekitio/models/accounts/usage_analytics_response.rbs', line 307

def to_hash: -> { name: String, request_count: Float }