Sha256: b554685f8baf17826ee293682bf6647d31eafb26ceda7beeb4bee82de07cba53

Contents?: true

Size: 1.29 KB

Versions: 16

Compression:

Stored size: 1.29 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Attributes < Base
        def as_json
          {
            accrued_remap_cooldown_date: accrued_remap_cooldown_date,
            bonus_remaps: bonus_remaps,
            charisma: charisma,
            intelligence: intelligence,
            last_remap_date: last_remap_date,
            memory: memory,
            perception: perception,
            willpower: willpower
          }
        end

        def accrued_remap_cooldown_date
          accrued_remap_cooldown_date = options["accrued_remap_cooldown_date"]

          parse_datetime_with_timezone(accrued_remap_cooldown_date) if accrued_remap_cooldown_date
        end

        def bonus_remaps
          options["bonus_remaps"]
        end

        def charisma
          options["charisma"]
        end

        def intelligence
          options["intelligence"]
        end

        def last_remap_date
          last_remap_date = options["last_remap_date"]

          parse_datetime_with_timezone(last_remap_date) if last_remap_date
        end

        def memory
          options["memory"]
        end

        def perception
          options["perception"]
        end

        def willpower
          options["willpower"]
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
eve_online-0.46.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.45.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.44.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.43.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.42.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.41.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.40.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.39.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.38.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.37.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.36.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.35.1 lib/eve_online/esi/models/attributes.rb
eve_online-0.35.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.34.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.33.0 lib/eve_online/esi/models/attributes.rb
eve_online-0.32.0 lib/eve_online/esi/models/attributes.rb