Class: Outhad::Integrations::Protocol::Stream
- Inherits:
-
ProtocolModel
- Object
- Dry::Struct
- ProtocolModel
- Outhad::Integrations::Protocol::Stream
- Defined in:
- lib/outhad/integrations/protocol/protocol.rb
Instance Method Summary collapse
Methods inherited from ProtocolModel
Methods included from Core::Utils
#build_catalog, #build_stream, #convert_to_json_schema, #create_log_message, #extract_data, #handle_exception, #hash_to_string, #keys_to_symbols, #log_request_response, #logger, #map_type_to_json_schema, #report_exception, #success?
Instance Method Details
#rate_limit_unit_seconds ⇒ Object
135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/outhad/integrations/protocol/protocol.rb', line 135 def rate_limit_unit_seconds case request_rate_limit_unit when "minute" 60 # Seconds in a minute when "hour" 3600 # Seconds in an hour when "day" 86_400 # Seconds in a day else 1 # Default case, consider as seconds or handle as error end end |