Class: Multiwoven::Integrations::Core::OpenRouterCatalog::Result
- Inherits:
-
Struct
- Object
- Struct
- Multiwoven::Integrations::Core::OpenRouterCatalog::Result
- Defined in:
- lib/multiwoven/integrations/core/open_router_catalog.rb
Instance Attribute Summary collapse
-
#fetched_at ⇒ Object
Returns the value of attribute fetched_at.
-
#models_by_slug ⇒ Object
Returns the value of attribute models_by_slug.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#fetched_at ⇒ Object
Returns the value of attribute fetched_at
15 16 17 |
# File 'lib/multiwoven/integrations/core/open_router_catalog.rb', line 15 def fetched_at @fetched_at end |
#models_by_slug ⇒ Object
Returns the value of attribute models_by_slug
15 16 17 |
# File 'lib/multiwoven/integrations/core/open_router_catalog.rb', line 15 def models_by_slug @models_by_slug end |
#source ⇒ Object
Returns the value of attribute source
15 16 17 |
# File 'lib/multiwoven/integrations/core/open_router_catalog.rb', line 15 def source @source end |
Instance Method Details
#models_for(slug) ⇒ Object
16 17 18 19 20 |
# File 'lib/multiwoven/integrations/core/open_router_catalog.rb', line 16 def models_for(slug) return [] if slug.blank? models_by_slug.fetch(slug.to_s.downcase, []) end |