Sha256: d9b3c7e9ca2b59c2d06b2c877dccf0338878b4c1ee98b45c3016cbdf4279cb11

Contents?: true

Size: 1.19 KB

Versions: 16

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

16 entries across 16 versions & 1 rubygems

Version Path
eve_online-0.46.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.45.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.44.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.43.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.42.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.41.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.40.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.39.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.38.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.37.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.36.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.35.1 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.35.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.34.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.33.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.32.0 lib/eve_online/esi/models/dogma_attribute.rb