Sha256: d426077f1da7d243edaac4a499463448f1643e754c84d52f5d54ca796ec4be5d
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 Bytes
Contents
require 'forwardable' module EveOnline module ESI class DogmaAttribute < Base extend Forwardable API_ENDPOINT = 'https://esi.tech.ccp.is/v1/dogma/attributes/%<attribute_id>s/?datasource=tranquility'.freeze attr_reader :attribute_id def initialize(options) super @attribute_id = options[:attribute_id] end def_delegators :model, :as_json, :id, :name, :description, :icon_id, :default_value, :published, :display_name, :unit_id, :stackable, :high_is_good def model Models::DogmaAttribute.new(response) end memoize :model def scope; end def url format(API_ENDPOINT, attribute_id: attribute_id) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.14.0 | lib/eve_online/esi/dogma_attribute.rb |