Class: GetStream::Generated::Models::GoogleVisionConfig

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/google_vision_config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ GoogleVisionConfig

Initialize with attributes



17
18
19
20
# File 'lib/getstream_ruby/generated/models/google_vision_config.rb', line 17

def initialize(attributes = {})
  super(attributes)
  @enabled = attributes[:enabled] || attributes['enabled'] || nil
end

Instance Attribute Details

#enabledBoolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/getstream_ruby/generated/models/google_vision_config.rb', line 14

def enabled
  @enabled
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



23
24
25
26
27
# File 'lib/getstream_ruby/generated/models/google_vision_config.rb', line 23

def self.json_field_mappings
  {
    enabled: 'enabled'
  }
end