Class: GetStream::Generated::Models::ImageData

Inherits:
BaseModel
  • Object
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

#framesString

Returns:

  • (String)


14
15
16
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 14

def frames
  @frames
end

#heightString

Returns:

  • (String)


17
18
19
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 17

def height
  @height
end

#sizeString

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 20

def size
  @size
end

#urlString

Returns:

  • (String)


23
24
25
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 23

def url
  @url
end

#widthString

Returns:

  • (String)


26
27
28
# File 'lib/getstream_ruby/generated/models/image_data.rb', line 26

def width
  @width
end

Class Method Details

.json_field_mappingsObject

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