Class: GetStream::Generated::Models::DecayFunctionConfig
- Defined in:
- lib/getstream_ruby/generated/models/decay_function_config.rb
Instance Attribute Summary collapse
-
#base ⇒ String
Base value for decay function.
-
#decay ⇒ String
Decay rate.
-
#direction ⇒ String
Direction of decay.
-
#offset ⇒ String
Offset value for decay function.
-
#origin ⇒ String
Origin value for decay function.
-
#scale ⇒ String
Scale factor for decay function.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DecayFunctionConfig
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ DecayFunctionConfig
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 32 def initialize(attributes = {}) super(attributes) @base = attributes[:base] || attributes['base'] || nil @decay = attributes[:decay] || attributes['decay'] || nil @direction = attributes[:direction] || attributes['direction'] || nil @offset = attributes[:offset] || attributes['offset'] || nil @origin = attributes[:origin] || attributes['origin'] || nil @scale = attributes[:scale] || attributes['scale'] || nil end |
Instance Attribute Details
#base ⇒ String
Returns Base value for decay function.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 14 def base @base end |
#decay ⇒ String
Returns Decay rate.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 17 def decay @decay end |
#direction ⇒ String
Returns Direction of decay.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 20 def direction @direction end |
#offset ⇒ String
Returns Offset value for decay function.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 23 def offset @offset end |
#origin ⇒ String
Returns Origin value for decay function.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 26 def origin @origin end |
#scale ⇒ String
Returns Scale factor for decay function.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 29 def scale @scale end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/decay_function_config.rb', line 43 def self.json_field_mappings { base: 'base', decay: 'decay', direction: 'direction', offset: 'offset', origin: 'origin', scale: 'scale' } end |