class Tag
- Tag
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
models/tag.crConstant Summary
-
COLORS =
["gray", "orange", "red", "green", "violet", "skyblue"]
Constructors
- .new(id : Int64, name : String, category_id : Int64, parent_id : Int64 | Nil, description : String, category_name : String)
- .new(pull : JSON::PullParser)
Class Method Summary
- .cache
- .from_id(id : Int64, db : DB::Database)
- .from_row(row : DB::ResultSet)
- .pseudo(name : String)
Instance Method Summary
- #category_id : Int64
- #category_id=(category_id : Int64)
- #category_name : String
- #category_name=(category_name : String)
- #color : String
- #color=(color : String)
- #description : String
- #description=(description : String)
- #id : Int64
- #id=(id : Int64)
- #name : String
- #name=(name : String)
- #parent(db : DB::Database)
- #parent_id : Int64 | Nil
- #parent_id=(parent_id : Int64 | Nil)
Constructor Detail
def self.new(id : Int64, name : String, category_id : Int64, parent_id : Int64 | Nil, description : String, category_name : String)
#