Sha256: 7cf3242e194d82c8ed75d0c9767e68224ccdaf096e91ab3a78b86aee841095ff

Contents?: true

Size: 549 Bytes

Versions: 13

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class CharacterPortrait < Base
        def as_json
          {
            medium: medium,
            large: large,
            huge: huge,
            small: small
          }
        end

        def medium
          options['px128x128']
        end

        def large
          options['px256x256']
        end

        def huge
          options['px512x512']
        end

        def small
          options['px64x64']
        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/character_portrait.rb
eve_online-0.28.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.27.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.26.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.25.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.24.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.23.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.22.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.21.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.20.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.19.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.18.0 lib/eve_online/esi/models/character_portrait.rb
eve_online-0.17.0 lib/eve_online/esi/models/character_portrait.rb