class Tag

Included Modules

Defined in:

models/tag.cr

Constant Summary

COLORS = ["gray", "orange", "red", "green", "violet", "skyblue"]

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(id : Int64, name : String, category_id : Int64, parent_id : Int64 | Nil, description : String, category_name : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.cache #

[View source]
def self.from_id(id : Int64, db : DB::Database) #

[View source]
def self.from_row(row : DB::ResultSet) #

[View source]
def self.pseudo(name : String) #

[View source]

Instance Method Detail

def category_id : Int64 #

[View source]
def category_id=(category_id : Int64) #

[View source]
def category_name : String #

[View source]
def category_name=(category_name : String) #

[View source]
def color : String #

[View source]
def color=(color : String) #

[View source]
def description : String #

[View source]
def description=(description : String) #

[View source]
def id : Int64 #

[View source]
def id=(id : Int64) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def parent(db : DB::Database) #

[View source]
def parent_id : Int64 | Nil #

[View source]
def parent_id=(parent_id : Int64 | Nil) #

[View source]