module LittleLight::Clan

Public Instance Methods

get_banned_clan_members(groupId) click to toggle source

returns a list of banned members

# File lib/little_light/clan.rb, line 40
def get_banned_clan_members(groupId)
  data = self.class.get(
    "GroupV2/{groupId}/Banned/",
    headers: @headers
  )
end
get_clan_admin_founders(groupId) click to toggle source

both of the next two clan member functions take an optional param for page number (which limits to 50 elements per page). Not sure how to implement that currently.

# File lib/little_light/clan.rb, line 57
def get_clan_admin_founders(groupId)
  data = self.class.get(
    "/GroupV2/#{groupId}/AdminsAndFounder/",
     headers: @headers
   )
end
get_clan_by_id(groupId) click to toggle source
# File lib/little_light/clan.rb, line 18
def get_clan_by_id(groupId)
  data = self.class.get("/GroupV2/#{groupId}/",
    headers: @headers)
end
get_clan_by_name(groupName, groupType) click to toggle source

both get_clan_by methods return exactly the same thing, just different ways of accessing information through params

# File lib/little_light/clan.rb, line 8
def get_clan_by_name(groupName, groupType)
  if groupName.match(" ")
    groupName = groupName.split(" ").map {|el| el += "%20"}.join("")
  end
  data = self.class.get(
    "/GroupV2/Name/#{groupName}/#{groupType}/",
     headers: @headers
   )
end
get_clan_members(groupId) click to toggle source

returns a list of active members in the clan

# File lib/little_light/clan.rb, line 32
def get_clan_members(groupId)
  data = self.class.get(
    "/GroupV2/{groupId}/Members/",
    headers: @headers
  )
end
get_clan_optional_convos(groupId) click to toggle source

returns a list of available optional conserations for the clan

# File lib/little_light/clan.rb, line 24
def get_clan_optional_convos(groupId)
  data = self.class.get(
    "/GroupV2/{groupId}/OptionalConversations/",
    headers: @headers
  )
end
get_clan_weekly_state(groupId) click to toggle source

returns a hash of whether the rewards were unlocked or picked up along with their boolean state

# File lib/little_light/clan.rb, line 48
def get_clan_weekly_state(groupId)
  data = self.class.get(
    "/Destiny2/Clan/#{groupId}/WeeklyRewardState/",
     headers: @headers
   )
end