Class: LolApi::Passive

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::Inspectable

#inspect

Constructor Details

#initialize(raw_passive) ⇒ Passive

Returns a new instance of Passive.



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

def initialize(raw_passive)
	@raw_passive = raw_passive
end

Instance Attribute Details

#raw_passiveObject (readonly)

Returns the value of attribute raw_passive.



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

def raw_passive
  @raw_passive
end

Instance Method Details

#descriptionObject



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

def description 
	raw_passive['description']
end

#imageObject



15
16
17
# File 'lib/lol_api/types/dtos/passive.rb', line 15

def image 
	Image.new(raw_passive['image']) if raw_passive['image']
end

#nameObject



19
20
21
# File 'lib/lol_api/types/dtos/passive.rb', line 19

def name 
	raw_passive['name']
end

#sanitizedDescriptionObject



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

def sanitizedDescription
	raw_passive['sanitizedDescription']
end