Module: LittleLight::Clan
- Included in:
- Client
- Defined in:
- lib/little_light/clan.rb
Instance Method Summary collapse
-
#get_banned_clan_members(groupId) ⇒ Object
returns a list of banned members.
-
#get_clan_admin_founders(groupId) ⇒ Object
both of the next two clan member functions take an optional param for page number (which limits to 50 elements per page).
- #get_clan_by_id(groupId) ⇒ Object
-
#get_clan_by_name(groupName, groupType) ⇒ Object
both get_clan_by methods return exactly the same thing, just different ways of accessing information through params.
-
#get_clan_members(groupId) ⇒ Object
returns a list of active members in the clan.
-
#get_clan_optional_convos(groupId) ⇒ Object
returns a list of available optional conserations for the clan.
-
#get_clan_weekly_state(groupId) ⇒ Object
returns a hash of whether the rewards were unlocked or picked up along with their boolean state.
Instance Method Details
#get_banned_clan_members(groupId) ⇒ Object
returns a list of banned members
40 41 42 43 44 45 |
# 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) ⇒ Object
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.
57 58 59 60 61 62 |
# 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) ⇒ Object
18 19 20 21 |
# 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) ⇒ Object
both get_clan_by methods return exactly the same thing, just different ways of accessing information through params
8 9 10 11 12 13 14 15 16 |
# 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) ⇒ Object
returns a list of active members in the clan
32 33 34 35 36 37 |
# 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) ⇒ Object
returns a list of available optional conserations for the clan
24 25 26 27 28 29 |
# 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) ⇒ Object
returns a hash of whether the rewards were unlocked or picked up along with their boolean state
48 49 50 51 52 53 |
# 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 |