module Unchained::Client::Factions
Public Instance Methods
faction(id, opts={})
click to toggle source
# File lib/unchained/client/factions.rb, line 22 def faction(id, opts={}) factions(opts).find {|f| f.id == id} end
factions(opts={})
click to toggle source
# File lib/unchained/client/factions.rb, line 14 def factions(opts={}) @cache[:factions] ||= get_resources( "#{base_url}/gamedata/factions", Faction, opts, ) end