Class: Cadenya::Types::AIProviderKeyInfo
- Inherits:
-
Object
- Object
- Cadenya::Types::AIProviderKeyInfo
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#disabled_model_count ⇒ Object
readonly
Returns the value of attribute disabled_model_count.
-
#enabled_model_count ⇒ Object
readonly
Returns the value of attribute enabled_model_count.
-
#is_promotional ⇒ Object
readonly
Returns the value of attribute is_promotional.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled_model_count: nil, disabled_model_count: nil, is_promotional: nil) ⇒ AIProviderKeyInfo
constructor
A new instance of AIProviderKeyInfo.
- #to_h ⇒ Object
Constructor Details
#initialize(enabled_model_count: nil, disabled_model_count: nil, is_promotional: nil) ⇒ AIProviderKeyInfo
Returns a new instance of AIProviderKeyInfo.
64 65 66 67 68 |
# File 'lib/cadenya/types.rb', line 64 def initialize(enabled_model_count: nil, disabled_model_count: nil, is_promotional: nil) @enabled_model_count = enabled_model_count @disabled_model_count = disabled_model_count @is_promotional = is_promotional end |
Instance Attribute Details
#disabled_model_count ⇒ Object (readonly)
Returns the value of attribute disabled_model_count.
62 63 64 |
# File 'lib/cadenya/types.rb', line 62 def disabled_model_count @disabled_model_count end |
#enabled_model_count ⇒ Object (readonly)
Returns the value of attribute enabled_model_count.
62 63 64 |
# File 'lib/cadenya/types.rb', line 62 def enabled_model_count @enabled_model_count end |
#is_promotional ⇒ Object (readonly)
Returns the value of attribute is_promotional.
62 63 64 |
# File 'lib/cadenya/types.rb', line 62 def is_promotional @is_promotional end |
Class Method Details
.from_json(data) ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/cadenya/types.rb', line 70 def self.from_json(data) new( enabled_model_count: data["enabledModelCount"], disabled_model_count: data["disabledModelCount"], is_promotional: data["isPromotional"], ) end |