Class: GetStream::Generated::Models::Images
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::Images
show all
- Defined in:
- lib/getstream_ruby/generated/models/images.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 = {}) ⇒ Images
Initialize with attributes
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 35
def initialize(attributes = {})
super(attributes)
@fixed_height = attributes[:fixed_height] || attributes['fixed_height']
@fixed_height_downsampled = attributes[:fixed_height_downsampled] || attributes['fixed_height_downsampled']
@fixed_height_still = attributes[:fixed_height_still] || attributes['fixed_height_still']
@fixed_width = attributes[:fixed_width] || attributes['fixed_width']
@fixed_width_downsampled = attributes[:fixed_width_downsampled] || attributes['fixed_width_downsampled']
@fixed_width_still = attributes[:fixed_width_still] || attributes['fixed_width_still']
@original = attributes[:original] || attributes['original']
end
|
Instance Attribute Details
14
15
16
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 14
def fixed_height
@fixed_height
end
|
#fixed_height_downsampled ⇒ ImageData
17
18
19
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 17
def fixed_height_downsampled
@fixed_height_downsampled
end
|
#fixed_height_still ⇒ ImageData
20
21
22
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 20
def fixed_height_still
@fixed_height_still
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 23
def fixed_width
@fixed_width
end
|
#fixed_width_downsampled ⇒ ImageData
26
27
28
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 26
def fixed_width_downsampled
@fixed_width_downsampled
end
|
#fixed_width_still ⇒ ImageData
29
30
31
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 29
def fixed_width_still
@fixed_width_still
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/images.rb', line 32
def original
@original
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/images.rb', line 47
def self.json_field_mappings
{
fixed_height: 'fixed_height',
fixed_height_downsampled: 'fixed_height_downsampled',
fixed_height_still: 'fixed_height_still',
fixed_width: 'fixed_width',
fixed_width_downsampled: 'fixed_width_downsampled',
fixed_width_still: 'fixed_width_still',
original: 'original'
}
end
|