Class: GetStream::Generated::Models::UpsertActionConfigItem
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::UpsertActionConfigItem
show all
- Defined in:
- lib/getstream_ruby/generated/models/upsert_action_config_item.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 with attributes
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 38
def initialize(attributes = {})
super(attributes)
@action = attributes.fetch(:action) { attributes.fetch('action', nil) }
@entity_type = attributes.fetch(:entity_type) { attributes.fetch('entity_type', nil) }
@order = attributes.fetch(:order) { attributes.fetch('order', nil) }
@description = attributes.fetch(:description) { attributes.fetch('description', nil) }
@icon = attributes.fetch(:icon) { attributes.fetch('icon', nil) }
@id = attributes.fetch(:id) { attributes.fetch('id', nil) }
@queue_type = attributes.fetch(:queue_type) { attributes.fetch('queue_type', nil) }
@custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) }
end
|
Instance Attribute Details
#action ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 14
def action
@action
end
|
#custom ⇒ Object
35
36
37
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 35
def custom
@custom
end
|
#description ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 23
def description
@description
end
|
#entity_type ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 17
def entity_type
@entity_type
end
|
#icon ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 26
def icon
@icon
end
|
#id ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 29
def id
@id
end
|
#order ⇒ Integer
20
21
22
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 20
def order
@order
end
|
#queue_type ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 32
def queue_type
@queue_type
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
51
52
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/getstream_ruby/generated/models/upsert_action_config_item.rb', line 51
def self.json_field_mappings
{
action: 'action',
entity_type: 'entity_type',
order: 'order',
description: 'description',
icon: 'icon',
id: 'id',
queue_type: 'queue_type',
custom: 'custom'
}
end
|