Sha256: e3f363fa673afb464bf570aee7e5f279645929d851acffd81cb6fffc511df747

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

module EveOnline
  module SDE
    module Models
      class AgtAgentType
        attr_reader :data

        def initialize(data)
          @data = data
        end

        def as_json
          {
            agent_type: agent_type,
            agent_type_id: agent_type_id
          }
        end

        def agent_type
          data['agentType']
        end

        def agent_type_id
          data['agentTypeID']
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/sde/models/agt_agent_type.rb
eve_online-0.13.0 lib/eve_online/sde/models/agt_agent_type.rb
eve_online-0.12.0 lib/eve_online/sde/models/agt_agent_type.rb
eve_online-0.11.0 lib/eve_online/sde/models/agt_agent_type.rb