| Total Complexity | 4 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # frozen_string_literal: true |
||
| 5 | class Pergamino < Util |
||
| 6 | def name |
||
| 7 | pergamino(id)['name'] |
||
| 8 | end |
||
| 9 | |||
| 10 | def precio |
||
| 11 | pergamino(id)['precio'] |
||
| 12 | end |
||
| 13 | |||
| 14 | # Max num. permitido |
||
| 15 | def max |
||
| 16 | pergamino(id)['hechizos'] |
||
| 17 | end |
||
| 18 | |||
| 19 | def hechizos |
||
| 20 | spells.map { |s| Elemental.new(id: s).name } |
||
| 21 | end |
||
| 22 | end |
||
| 23 |