Class: Wikirate4ruby::Entities::ResearchGroup
- Defined in:
- lib/wikirate4ruby/entities/research_group.rb
Constant Summary collapse
- ATTRIBUTES =
%i[researchers].freeze
Constants inherited from Card
Instance Method Summary collapse
-
#initialize(research_group) ⇒ ResearchGroup
constructor
A new instance of ResearchGroup.
Methods inherited from Card
#as_json, #raw_json, #to_json, #to_s
Constructor Details
#initialize(research_group) ⇒ ResearchGroup
Returns a new instance of ResearchGroup.
9 10 11 12 13 14 15 |
# File 'lib/wikirate4ruby/entities/research_group.rb', line 9 def initialize(research_group) super research_group raise parsing_error name = "IncompatibleCardType", = "The input Card is not a Research Group but a #{@type}" if @type != 'Research Group' @researchers = get_content 'researchers' end |