Class: INatGet::Data::DSL::Condition::Special::ProjectUsers Private

Inherits:
INatGet::Data::DSL::Condition show all
Defined in:
lib/inat-get/data/dsl/conditions/special/project_users.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::DSL::Condition

#manager, #model

Instance Method Summary collapse

Methods inherited from INatGet::Data::DSL::Condition

#!, #&, #sequel_query, #|

Methods included from INatGet::Data::DSL

#AND, #ANYTHING, #NOT, #NOTHING, #OR, #Q, #finish_time, #get_identification, #get_observation, #get_place, #get_project, #get_taxon, #get_user, #now, #select_identifications, #select_observations, #select_places, #select_projects, #select_taxa, #select_users, #start_time, #time_range, #today, #version, #version!, #version?, #version_alias

Constructor Details

#initialize(project_id) ⇒ ProjectUsers

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 ProjectUsers.



10
11
12
# File 'lib/inat-get/data/dsl/conditions/special/project_users.rb', line 10

def initialize project_id
  @project_id = project_id
end

Instance Method Details

#api_queryObject

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.



14
15
16
# File 'lib/inat-get/data/dsl/conditions/special/project_users.rb', line 14

def api_query
  [ { endpoint: "projects/#{ @project_id }/members", query: {} } ]
end