Sha256: d865cb1348b457f8c78715602d8ecebd9be829236778b7f33913266b977eb643

Contents?: true

Size: 1.6 KB

Versions: 2

Compression:

Stored size: 1.6 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Type < Base
        def as_json
          {
            capacity: capacity,
            description: description,
            # TODO: dogma_attributes
            # TODO: dogma_effects
            graphic_id: graphic_id,
            group_id: group_id,
            icon_id: icon_id,
            market_group_id: market_group_id,
            mass: mass,
            name: name,
            packaged_volume: packaged_volume,
            portion_size: portion_size,
            published: published,
            radius: radius,
            type_id: type_id,
            volume: volume
          }
        end

        def capacity
          options['capacity']
        end

        def description
          options['description']
        end

        def graphic_id
          options['graphic_id']
        end

        def group_id
          options['group_id']
        end

        def icon_id
          options['icon_id']
        end

        def market_group_id
          options['market_group_id']
        end

        def mass
          options['mass']
        end

        def name
          options['name']
        end

        def packaged_volume
          options['packaged_volume']
        end

        def portion_size
          options['portion_size']
        end

        def published
          options['published']
        end

        def radius
          options['radius']
        end

        def type_id
          options['type_id']
        end

        def volume
          options['volume']
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.18.0 lib/eve_online/esi/models/type.rb
eve_online-0.17.0 lib/eve_online/esi/models/type.rb