module Unchained::Client::Attributes

Public Instance Methods

attribute_offsets(shard, opts={}) click to toggle source
# File lib/unchained/client/attributes.rb, line 33
def attribute_offsets(shard, opts={})
  @cache[:attribute_offsets] ||= get_resources(
    "#{base_url}/gamedata/attributeoffsets/#{shard}",
    AttributeOffset,
    opts,
  )
end
attributes(shard, opts={}) click to toggle source
# File lib/unchained/client/attributes.rb, line 25
def attributes(shard, opts={})
  @cache[:attributes] ||= get_resources(
    "#{base_url}/gamedata/attributes/#{shard}",
    AttributeInfo,
    opts,
  )
end