class Note

Included Modules

Defined in:

models/note.cr:1
models/note.cr:24

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(book : Book, user : User, parser : NoteBuilder) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.adapter : Granite::Adapter::Base #

def self.default(book : Book, builder : NoteBuilder) #

[View source]

Instance Method Detail

def body : String #

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

[View source]
def body=(builder : NoteBuilder) #

[View source]
def book : Book | Nil #

[View source]
def book! : Book #

[View source]
def book=(parent : Book) #

[View source]
def book_id : Int64 | Nil #

def book_id! : Int64 #

def book_id=(book_id : Int64 | Nil) #

def created_at : Time | Nil #

def created_at! : Time #

def created_at=(created_at : Time | Nil) #

def id : Int64 | Nil #

[View source]
def id! : Int64 #

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

[View source]
def is_hidden : Bool #

[View source]
def is_hidden=(is_hidden : Bool) #

[View source]
def tag_names : Array(String) | Nil #

[View source]
def tag_names=(tag_names : Array(String) | Nil) #

[View source]
def tags #

[View source]
def title : String | Nil #

[View source]
def title! : String #

[View source]
def title=(title : String | Nil) #

[View source]
def updated_at : Time | Nil #

def updated_at! : Time #

def updated_at=(updated_at : Time | Nil) #

def user : User | Nil #

[View source]
def user! : User #

[View source]
def user=(parent : User) #

[View source]
def user_id : Int64 | Nil #

def user_id! : Int64 #

def user_id=(user_id : Int64 | Nil) #