Class: Imagekitio::Models::Accounts::RequestBandwidthEntry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/accounts/request_bandwidth_entry.rb,
sig/imagekitio/models/accounts/request_bandwidth_entry.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

#initialize(bandwidth_bytes:, request_count:) ⇒ RequestBandwidthEntry

Returns a new instance of RequestBandwidthEntry.

Parameters:

  • bandwidth_bytes (Float)

    Total bandwidth used in bytes.

  • request_count (Float)

    Number of requests.

  • bandwidth_bytes: (Float)
  • request_count: (Float)


# File 'lib/imagekitio/models/accounts/request_bandwidth_entry.rb', line 19

Instance Attribute Details

#bandwidth_bytesFloat

Total bandwidth used in bytes.

Parameters:

  • value (Float)

Returns:

  • (Float)


11
# File 'lib/imagekitio/models/accounts/request_bandwidth_entry.rb', line 11

required :bandwidth_bytes, Float, api_name: :bandwidthBytes

#request_countFloat

Number of requests.

Parameters:

  • value (Float)

Returns:

  • (Float)


17
# File 'lib/imagekitio/models/accounts/request_bandwidth_entry.rb', line 17

required :request_count, Float, api_name: :requestCount

Instance Method Details

#to_hash{ bandwidth_bytes: Float, request_count: Float }

Returns:

  • ({ bandwidth_bytes: Float, request_count: Float })


14
# File 'sig/imagekitio/models/accounts/request_bandwidth_entry.rbs', line 14

def to_hash: -> { bandwidth_bytes: Float, request_count: Float }