class Inputs::Stories::Create
Included Modules
Defined in:
inputs/stories.cr
Constant Summary
-
PROPERTY_CONFIGS =
{score: {type: Int32}, title: {type: String}, url: {type: String}, external_id: {type: String}, favorited_at: {type: Time}, source_id: {type: Int32, parser: :parse_source_id}}
Constructors
Instance Method Summary
Constructor Detail
def self.
new(json : JSON::Any)
#
Instance Method Detail
def
_parse_external_id : String
#
def
_parse_favorited_at : Time
#
def
_parse_score : Int32
#
def
_parse_source_id : Int32
#
def
_parse_title : String
#
def
_parse_url : String
#
def
external_id : String
#
def
external_id=(external_id : String)
#
def
favorited_at : Time
#
def
favorited_at=(favorited_at : Time)
#
def
parse_source_id(value : String) : Int32
#
def
score=(score : Int32)
#
def
source_id=(source_id : Int32)
#
def
title=(title : String)
#
def
to_model(user_id : Int32) :
Story
#