Module: Unchained::Client::Archetypes
- Included in:
- Unchained::Client
- Defined in:
- lib/unchained/client/archetypes.rb
Defined Under Namespace
Classes: Archetype
Instance Method Summary collapse
Instance Method Details
#archetype(id, opts = {}) ⇒ Object
22 23 24 |
# File 'lib/unchained/client/archetypes.rb', line 22 def archetype(id, opts={}) archetypes(opts).find {|at| at.id == id} end |
#archetypes(opts = {}) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/unchained/client/archetypes.rb', line 14 def archetypes(opts={}) @cache[:archetypes] ||= get_resources( "#{base_url}/gamedata/archetypes", Archetype, opts, ) end |