module Unchained::Client::Archetypes

Public Instance Methods

archetype(id, opts={}) click to toggle source
# File lib/unchained/client/archetypes.rb, line 22
def archetype(id, opts={})
  archetypes(opts).find {|at| at.id == id}
end
archetypes(opts={}) click to toggle source
# File lib/unchained/client/archetypes.rb, line 14
def archetypes(opts={})
  @cache[:archetypes] ||= get_resources(
    "#{base_url}/gamedata/archetypes",
    Archetype,
    opts,
  )
end