Sha256: 7db473b8ba6076c6dfbfef29c170bdae38de5c25f9a803b04fae4b3cbf5dedce

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

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

        def id
          options['attribute_id']
        end

        def name
          options['name']
        end

        def description
          options['description']
        end

        def icon_id
          options['icon_id']
        end

        def default_value
          options['default_value']
        end

        def published
          options['published']
        end

        def display_name
          options['display_name']
        end

        def unit_id
          options['unit_id']
        end

        def stackable
          options['stackable']
        end

        def high_is_good
          options['high_is_good']
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/esi/models/dogma_attribute.rb
eve_online-0.13.0 lib/eve_online/esi/models/dogma_attribute.rb