Class: GetStream::Generated::Models::GetImportV2TaskResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::GetImportV2TaskResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/get_import_v2_task_response.rb
Overview
Basic response information
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
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 41
def initialize(attributes = {})
super(attributes)
@app_pk = attributes.fetch(:app_pk) { attributes.fetch('app_pk', nil) }
@created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
@id = attributes.fetch(:id) { attributes.fetch('id', nil) }
@product = attributes.fetch(:product) { attributes.fetch('product', nil) }
@state = attributes.fetch(:state) { attributes.fetch('state', nil) }
@updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) }
@settings = attributes.fetch(:settings) { attributes.fetch('settings', nil) }
@result = attributes.fetch(:result) { attributes.fetch('result', nil) }
end
|
Instance Attribute Details
#app_pk ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 14
def app_pk
@app_pk
end
|
#created_at ⇒ DateTime
17
18
19
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 17
def created_at
@created_at
end
|
#duration ⇒ String
Returns Duration of the request in milliseconds.
20
21
22
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 20
def duration
@duration
end
|
#id ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 23
def id
@id
end
|
#product ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 26
def product
@product
end
|
#result ⇒ Object
38
39
40
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 38
def result
@result
end
|
35
36
37
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 35
def settings
@settings
end
|
#state ⇒ Integer
29
30
31
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 29
def state
@state
end
|
#updated_at ⇒ DateTime
32
33
34
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 32
def updated_at
@updated_at
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/getstream_ruby/generated/models/get_import_v2_task_response.rb', line 55
def self.json_field_mappings
{
app_pk: 'app_pk',
created_at: 'created_at',
duration: 'duration',
id: 'id',
product: 'product',
state: 'state',
updated_at: 'updated_at',
settings: 'settings',
result: 'result'
}
end
|