class Story

Included Modules

Defined in:

models/story.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Models::Shared::Id

id! : Int32 id!

Constructor Detail

def self.find(id : Int32) : Story #

[View source]
def self.new(id : Int32 | Nil, score : Int32, title : String, url : String, external_id : String, favorited_at : Time, user_id : Int32, source_id : Int32) #

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

[View source]

Class Method Detail

def self.all #

[View source]

Instance Method Detail

def external_id : String #

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

[View source]
def favorited_at : Time #

[View source]
def favorited_at=(favorited_at : Time) #

[View source]
def id : Int32 | Nil #

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

[View source]
def save #

[View source]
def score : Int32 #

[View source]
def score=(score : Int32) #

[View source]
def source_id : Int32 #

[View source]
def source_id=(source_id : Int32) #

[View source]
def title : String #

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

[View source]
def url : String #

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

[View source]
def user_id : Int32 #

[View source]
def user_id=(user_id : Int32) #

[View source]