Class: GetStream::Generated::Models::GeofenceSettingsRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/geofence_settings_request.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 = {}) ⇒ GeofenceSettingsRequest

Initialize with attributes



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

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

Instance Attribute Details

#namesArray<String>



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

def names
  @names
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



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

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