Class: GetStream::Generated::Models::ImageData
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ImageData
show all
- Defined in:
- lib/getstream_ruby/generated/models/image_data.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 = {}) ⇒ ImageData
Initialize with attributes
29
30
31
32
33
34
35
36
|
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 29
def initialize(attributes = {})
super(attributes)
@frames = attributes[:frames] || attributes['frames']
@height = attributes[:height] || attributes['height']
@size = attributes[:size] || attributes['size']
@url = attributes[:url] || attributes['url']
@width = attributes[:width] || attributes['width']
end
|
Instance Attribute Details
#frames ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 14
def frames
@frames
end
|
#height ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 17
def height
@height
end
|
#size ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 20
def size
@size
end
|
#url ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 23
def url
@url
end
|
#width ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 26
def width
@width
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39
40
41
42
43
44
45
46
47
|
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 39
def self.json_field_mappings
{
frames: 'frames',
height: 'height',
size: 'size',
url: 'url',
width: 'width'
}
end
|