Class: LolApi::Image

Inherits:
Object
  • Object
show all
Includes:
Utils::Inspectable
Defined in:
lib/lol_api/types/dtos/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::Inspectable

#inspect

Constructor Details

#initialize(raw_image) ⇒ Image

Returns a new instance of Image.



7
8
9
# File 'lib/lol_api/types/dtos/image.rb', line 7

def initialize(raw_image)
	@raw_image = raw_image
end

Instance Attribute Details

#raw_imageObject (readonly)

Returns the value of attribute raw_image.



5
6
7
# File 'lib/lol_api/types/dtos/image.rb', line 5

def raw_image
  @raw_image
end

Instance Method Details

#fullObject



11
12
13
# File 'lib/lol_api/types/dtos/image.rb', line 11

def full 
	raw_image['full']
end

#groupObject



14
15
16
# File 'lib/lol_api/types/dtos/image.rb', line 14

def group
	raw_image['group']
end

#heightObject



17
18
19
# File 'lib/lol_api/types/dtos/image.rb', line 17

def height 
	raw_image['h']
end

#spriteObject



29
30
31
# File 'lib/lol_api/types/dtos/image.rb', line 29

def sprite 
	raw_image['sprite']
end

#widthObject



20
21
22
# File 'lib/lol_api/types/dtos/image.rb', line 20

def width
	raw_image['w']
end

#xObject



23
24
25
# File 'lib/lol_api/types/dtos/image.rb', line 23

def x 
	raw_image['x']
end

#yObject



26
27
28
# File 'lib/lol_api/types/dtos/image.rb', line 26

def y 
	raw_image['y']
end