Module: Rager::Options
- Extended by:
- T::Helpers, T::Sig
- Included in:
- Chat::Options, Embed::Options, Image::Options, Mesh::Options, Rerank::Options, Search::Options, Template::Options
- Defined in:
- lib/rager/options.rb
Instance Method Summary collapse
Instance Method Details
#serialize_safe ⇒ Object
13 14 15 16 17 |
# File 'lib/rager/options.rb', line 13 def serialize_safe result = T.cast(self, T::Struct).serialize result["api_key"] = "[REDACTED]" if result.key?("api_key") result end |
#validate ⇒ Object
20 21 |
# File 'lib/rager/options.rb', line 20 def validate end |