Sha256: e4be013c45873d37ae41d81568eea277d82bbb1a07b3171fa73a69fc7a772f02

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

module EveOnline
  module SDE
    module Models
      class AgtResearchAgent
        attr_reader :data

        def initialize(data)
          @data = data
        end

        def as_json
          {
            agent_id: agent_id,
            type_id: type_id
          }
        end

        def agent_id
          data['agentID']
        end

        def type_id
          data['typeID']
        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_research_agent.rb
eve_online-0.13.0 lib/eve_online/sde/models/agt_research_agent.rb
eve_online-0.12.0 lib/eve_online/sde/models/agt_research_agent.rb
eve_online-0.11.0 lib/eve_online/sde/models/agt_research_agent.rb