Class: LolApi::Image
- Inherits:
-
Object
- Object
- LolApi::Image
- Includes:
- Utils::Inspectable
- Defined in:
- lib/lol_api/types/dtos/image.rb
Instance Attribute Summary collapse
-
#raw_image ⇒ Object
readonly
Returns the value of attribute raw_image.
Instance Method Summary collapse
- #full ⇒ Object
- #group ⇒ Object
- #height ⇒ Object
-
#initialize(raw_image) ⇒ Image
constructor
A new instance of Image.
- #sprite ⇒ Object
- #width ⇒ Object
- #x ⇒ Object
- #y ⇒ Object
Methods included from Utils::Inspectable
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_image ⇒ Object (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
#full ⇒ Object
11 12 13 |
# File 'lib/lol_api/types/dtos/image.rb', line 11 def full raw_image['full'] end |
#group ⇒ Object
14 15 16 |
# File 'lib/lol_api/types/dtos/image.rb', line 14 def group raw_image['group'] end |
#height ⇒ Object
17 18 19 |
# File 'lib/lol_api/types/dtos/image.rb', line 17 def height raw_image['h'] end |
#sprite ⇒ Object
29 30 31 |
# File 'lib/lol_api/types/dtos/image.rb', line 29 def sprite raw_image['sprite'] end |
#width ⇒ Object
20 21 22 |
# File 'lib/lol_api/types/dtos/image.rb', line 20 def width raw_image['w'] end |
#x ⇒ Object
23 24 25 |
# File 'lib/lol_api/types/dtos/image.rb', line 23 def x raw_image['x'] end |
#y ⇒ Object
26 27 28 |
# File 'lib/lol_api/types/dtos/image.rb', line 26 def y raw_image['y'] end |