class Inputs::Stories::Update

Included Modules

Defined in:

inputs/stories.cr

Constant Summary

PROPERTY_CONFIGS = {id: {type: Int32, parser: :parse_id}, 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

Instance methods inherited from module Inputs::Shared::Parser

_parse_int(value) : Int32 _parse_int, _parse_string(value) : String _parse_string, _parse_time(value) : Time _parse_time, errors : Hash(String, String) errors, errors=(errors : Hash(String, String)) errors=

Macros inherited from module Inputs::Shared::Parser

property_parser property_parser

Constructor Detail

def self.new(json : JSON::Any) #

[View source]

Instance Method Detail

def _parse_external_id : String #

[View source]
def _parse_favorited_at : Time #

[View source]
def _parse_id : Int32 #

[View source]
def _parse_score : Int32 #

[View source]
def _parse_source_id : Int32 #

[View source]
def _parse_title : String #

[View source]
def _parse_url : String #

[View source]
def external_id : String #

def external_id=(external_id : String) #

def favorited_at : Time #

def favorited_at=(favorited_at : Time) #

def id : Int32 #

def id=(id : Int32) #

def parse_id(value : String) : Int32 #

[View source]
def parse_source_id(value : String) : Int32 #

[View source]
def score : Int32 #

def score=(score : Int32) #

def source_id : Int32 #

def source_id=(source_id : Int32) #

def title : String #

def title=(title : String) #

def to_model(user_id : Int32) : Story #

[View source]
def url : String #

def url=(url : String) #