Class: Cadenya::Types::OpenRouterConfig
- Inherits:
-
Object
- Object
- Cadenya::Types::OpenRouterConfig
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#region ⇒ Object
readonly
Returns the value of attribute region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(region: nil) ⇒ OpenRouterConfig
constructor
A new instance of OpenRouterConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(region: nil) ⇒ OpenRouterConfig
Returns a new instance of OpenRouterConfig.
4436 4437 4438 |
# File 'lib/cadenya/types.rb', line 4436 def initialize(region: nil) @region = region end |
Instance Attribute Details
#region ⇒ Object (readonly)
Returns the value of attribute region.
4434 4435 4436 |
# File 'lib/cadenya/types.rb', line 4434 def region @region end |
Class Method Details
.from_json(data) ⇒ Object
4440 4441 4442 4443 4444 |
# File 'lib/cadenya/types.rb', line 4440 def self.from_json(data) new( region: data["region"], ) end |