Sha256: 438edcbcdcffeac6a556877d9a19b7848371c1ed235f3f10bd742e32825c2750

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class DogmaAttribute < Base
        def as_json
          {
            attribute_id: attribute_id,
            default_value: default_value,
            description: description,
            display_name: display_name,
            high_is_good: high_is_good,
            icon_id: icon_id,
            name: name,
            published: published,
            stackable: stackable,
            unit_id: unit_id
          }
        end

        def attribute_id
          options['attribute_id']
        end

        def default_value
          options['default_value']
        end

        def description
          options['description']
        end

        def display_name
          options['display_name']
        end

        def high_is_good
          options['high_is_good']
        end

        def icon_id
          options['icon_id']
        end

        def name
          options['name']
        end

        def published
          options['published']
        end

        def stackable
          options['stackable']
        end

        def unit_id
          options['unit_id']
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.28.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.27.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.26.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.25.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.24.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.23.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.22.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.21.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.20.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.19.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.18.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.17.0 lib/eve_online/esi/models/dogma_attribute.rb