Module: Unchained::Client::Attributes

Included in:
Unchained::Client
Defined in:
lib/unchained/client/attributes.rb

Defined Under Namespace

Classes: AttributeInfo, AttributeOffset

Instance Method Summary collapse

Instance Method Details

#attribute_offsets(shard, opts = {}) ⇒ Object



33
34
35
36
37
38
39
# 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 = {}) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/unchained/client/attributes.rb', line 25

def attributes(shard, opts={})
  @cache[:attributes] ||= get_resources(
    "#{base_url}/gamedata/attributes/#{shard}",
    AttributeInfo,
    opts,
  )
end