class PathfinderDeckBuilder::ArmorCard
Public Instance Methods
assembled_card(path)
click to toggle source
Calls superclass method
# File lib/armor_card.rb, line 14 def assembled_card(path) super end
create_card(index=nil)
click to toggle source
Calls superclass method
# File lib/armor_card.rb, line 6 def create_card(index=nil) super end
set_class_path()
click to toggle source
# File lib/armor_card.rb, line 10 def set_class_path @class_path = @armor_path end
static_content()
click to toggle source
# File lib/armor_card.rb, line 18 def static_content { "count": 1, "color": "grey", "title": "Armor", "icon": "anvil" } end
variable_content(path)
click to toggle source
# File lib/armor_card.rb, line 27 def variable_content(path) { "contents": [ "subtitle | #{path["name"]}", "rule", "property | AC | #{path["ac"]}", "property | Weight | #{path["weight"]["text"]}", "property | Cost | #{path["cost"]["text"]}", "property | Quantity | #{path["quantity"]}", "fill", "section | Description", "text | #{path["description"]}"[0..500] ] } end