Sha256: 9fa6469e3141375400c218b8ae8294844c64de5dd8f993f011b8c1633b1d90dd

Contents?: true

Size: 1.24 KB

Versions: 13

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class SkillQueueEntry < Base
        def as_json
          {
            finish_date: finish_date,
            finished_level: finished_level,
            level_end_sp: level_end_sp,
            level_start_sp: level_start_sp,
            queue_position: queue_position,
            skill_id: skill_id,
            start_date: start_date,
            training_start_sp: training_start_sp
          }
        end

        def finish_date
          finish_date = options['finish_date']

          parse_datetime_with_timezone(finish_date) if finish_date
        end

        def finished_level
          options['finished_level']
        end

        def level_end_sp
          options['level_end_sp']
        end

        def level_start_sp
          options['level_start_sp']
        end

        def queue_position
          options['queue_position']
        end

        def skill_id
          options['skill_id']
        end

        def start_date
          start_date = options['start_date']

          parse_datetime_with_timezone(start_date) if start_date
        end

        def training_start_sp
          options['training_start_sp']
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.28.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.27.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.26.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.25.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.24.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.23.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.22.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.21.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.20.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.19.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.18.0 lib/eve_online/esi/models/skill_queue_entry.rb
eve_online-0.17.0 lib/eve_online/esi/models/skill_queue_entry.rb