Class: GetStream::Generated::Models::RuleBuilderRule
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::RuleBuilderRule
show all
- Defined in:
- lib/getstream_ruby/generated/models/rule_builder_rule.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 = {}) ⇒ RuleBuilderRule
Initialize with attributes
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 35
def initialize(attributes = {})
super(attributes)
@rule_type = attributes[:rule_type] || attributes['rule_type']
@action = attributes[:action] || attributes['action']
@cooldown_period = attributes[:cooldown_period] || attributes['cooldown_period'] || nil
@id = attributes[:id] || attributes['id'] || nil
@logic = attributes[:logic] || attributes['logic'] || nil
@conditions = attributes[:conditions] || attributes['conditions'] || nil
@groups = attributes[:groups] || attributes['groups'] || nil
end
|
Instance Attribute Details
17
18
19
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 17
def action
@action
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 29
def conditions
@conditions
end
|
#cooldown_period ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 20
def cooldown_period
@cooldown_period
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 32
def groups
@groups
end
|
#id ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 23
def id
@id
end
|
#logic ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 26
def logic
@logic
end
|
#rule_type ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 14
def rule_type
@rule_type
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/getstream_ruby/generated/models/rule_builder_rule.rb', line 47
def self.json_field_mappings
{
rule_type: 'rule_type',
action: 'action',
cooldown_period: 'cooldown_period',
id: 'id',
logic: 'logic',
conditions: 'conditions',
groups: 'groups'
}
end
|