Sha256: f6e368b56d5c6b18ec8db59519370048220fb966df9fe2f9b0d27d6324e7a724

Contents?: true

Size: 1.19 KB

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.31.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.30.0 lib/eve_online/esi/models/dogma_attribute.rb