Class: INatGet::Data::Parser::Part::PrjMembers Private

Inherits:
Links show all
Defined in:
lib/inat-get/data/parsers/defs/prjmembers.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from INatGet::Data::Parser::Part

#parser

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ PrjMembers

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of PrjMembers.



8
9
10
# File 'lib/inat-get/data/parsers/defs/prjmembers.rb', line 8

def initialize parser
  super parser, :members, model: INatGet::Data::Model::User, source_ids: :user_ids
end

Instance Method Details

#parse(target, source) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
15
16
17
# File 'lib/inat-get/data/parsers/defs/prjmembers.rb', line 12

def parse target, source
  condition = INatGet::Data::DSL::Condition::Special::ProjectUsers::new target.id
  INatGet::Data::Updater::ProjectUsers::instance.update! condition
  result = super target, source
  result
end