Class: Wikirate4ruby::Entities::CheckedBy

Inherits:
Card
  • Object
show all
Defined in:
lib/wikirate4ruby/entities/checked_by.rb

Constant Summary collapse

ATTRIBUTES =
%i[checks].freeze

Constants inherited from Card

Wikirate4ruby::Entities::Card::CARD_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from Card

#as_json, #raw_json, #to_json, #to_s

Constructor Details

#initialize(checked_by) ⇒ CheckedBy



9
10
11
12
13
14
15
# File 'lib/wikirate4ruby/entities/checked_by.rb', line 9

def initialize(checked_by)
  super checked_by
  raise parsing_error name = 'IncompatibleCardType', message = "The input Card is not a Checked By but a #{@type}" unless @name.end_with? 'checked by'

  @checks = get_content 'checks'

end