Class: NitroIntelligence::Model
- Inherits:
-
Object
- Object
- NitroIntelligence::Model
- Defined in:
- lib/nitro_intelligence/models/model.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#omit_output_fields ⇒ Object
readonly
Returns the value of attribute omit_output_fields.
Instance Method Summary collapse
-
#initialize(name:, omit_output_fields: []) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(name:, omit_output_fields: []) ⇒ Model
Returns a new instance of Model.
5 6 7 8 |
# File 'lib/nitro_intelligence/models/model.rb', line 5 def initialize(name:, omit_output_fields: [], **) @name = name @omit_output_fields = omit_output_fields.map { |field| field.split(".").map(&:to_sym) } end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/nitro_intelligence/models/model.rb', line 3 def name @name end |
#omit_output_fields ⇒ Object (readonly)
Returns the value of attribute omit_output_fields.
3 4 5 |
# File 'lib/nitro_intelligence/models/model.rb', line 3 def omit_output_fields @omit_output_fields end |