Class: ArchiveValidator::PostValidator

Inherits:
BaseValidator show all
Includes:
EntitiesHelper
Defined in:
lib/archive_validator/post_validator.rb

Instance Attribute Summary

Attributes inherited from BaseValidator

#archive_hash

Instance Method Summary collapse

Methods inherited from BaseValidator

#messages, #valid?

Methods included from ArchiveImporter::ArchiveHelper

#archive_author_diaspora_id, #contact_groups, #contacts, #others_relayables, #person, #post_subscriptions, #posts, #private_key, #relayables, #serialized_private_key

Constructor Details

#initialize(archive_hash, post) ⇒ PostValidator

Returns a new instance of PostValidator.


7
8
9
10
# File 'lib/archive_validator/post_validator.rb', line 7

def initialize(archive_hash, post)
  @json = post
  super(archive_hash)
end