Fork of https://github.com/modality/charred-black.
Short term, has some fixes.
Long term, may include a tool to create and edit stock/lifepath/skill/trait data.
http://charred.obscuritus.ca:8080/#/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
355 B
23 lines
355 B
2 years ago
|
module Charred
|
||
|
# module Stock
|
||
|
class Stock
|
||
|
attr :key
|
||
|
attr :name
|
||
|
|
||
|
def initialize(key, name)
|
||
|
@key = key
|
||
|
@name = name
|
||
|
end
|
||
|
def as_json(options = {})
|
||
|
{
|
||
|
"key" => key,
|
||
|
"name" => name
|
||
|
}
|
||
|
end
|
||
|
def to_json(*a)
|
||
|
as_json.to_json(*a)
|
||
|
end
|
||
|
# end
|
||
|
end
|
||
|
end
|