Class: LolApi::Passive
- Inherits:
-
Object
- Object
- LolApi::Passive
- Includes:
- Utils::Inspectable
- Defined in:
- lib/lol_api/types/dtos/passive.rb
Instance Attribute Summary collapse
-
#raw_passive ⇒ Object
readonly
Returns the value of attribute raw_passive.
Instance Method Summary collapse
- #description ⇒ Object
- #image ⇒ Object
-
#initialize(raw_passive) ⇒ Passive
constructor
A new instance of Passive.
- #name ⇒ Object
- #sanitizedDescription ⇒ Object
Methods included from Utils::Inspectable
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_passive ⇒ Object (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
#description ⇒ Object
11 12 13 |
# File 'lib/lol_api/types/dtos/passive.rb', line 11 def description raw_passive['description'] end |
#image ⇒ Object
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 |
#name ⇒ Object
19 20 21 |
# File 'lib/lol_api/types/dtos/passive.rb', line 19 def name raw_passive['name'] end |
#sanitizedDescription ⇒ Object
23 24 25 |
# File 'lib/lol_api/types/dtos/passive.rb', line 23 def sanitizedDescription raw_passive['sanitizedDescription'] end |