Class: Imgur::Model::Comment

Inherits:
Base
  • Object
show all
Includes:
Mixin::CreatedAtDatetime
Defined in:
(ruby-imgur 0.0.1) ruby-imgur/model.rb

Overview

Imgur Comment model

Constant Summary collapse

MODEL_KEYS =

List of Comment model keys.

%i(
  id image_id comment author author_id on_album album_cover
  ups downs points datetime parent_id deleted vote platform
  has_admin_badge children
).freeze
MODEL_PARSE =

model custom parsers

{
  # all Child Comments are supposed to reinstantiate Comment model
  children: ->(child_comments){
    child_comments.map(&method(:new))
  },
}.freeze

Method Summary

Methods included from Mixin::CreatedAtDatetime

#created_at

Methods inherited from Base

#initialize, #to_obj

Constructor Details

This class inherits a constructor from Imgur::Model::Base