class PathfinderDeckBuilder::SpellCard
Public Instance Methods
assembled_card(path)
click to toggle source
Calls superclass method
PathfinderDeckBuilder::Card#assembled_card
# File lib/spell_card.rb, line 14 def assembled_card(path) super end
create_card(index=nil)
click to toggle source
Calls superclass method
PathfinderDeckBuilder::Card#create_card
# File lib/spell_card.rb, line 6 def create_card(index=nil) super end
set_class_path()
click to toggle source
# File lib/spell_card.rb, line 10 def set_class_path @class_path = @spell_path end
static_content()
click to toggle source
# File lib/spell_card.rb, line 18 def static_content { "count": 1, "color": "green", "title": "Spell" } end
variable_content(path)
click to toggle source
# File lib/spell_card.rb, line 26 def variable_content(path) { "icon": "white-book-#{path["level"]}", "contents": [ "subtitle | #{path["name"]}", "rule", "property | Class | #{path["class"]}", "property | Level | #{path["level"]}", "property | Cast Time | #{path["casttime"]}", "property | Duration | #{path["duration"]}", "property | Range | #{path["range"]}", "property | Target | #{path["target"]}", "property | Area | #{path["area"]}", "fill", "section | Description", "text | #{path["description"]}"[0..318] ] } end