Sha256: f05d4a42e00afc5f99967b6873adb1ef668aaa034da084ccd7d57a17166bd280

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class MailLabel < Base
        def as_json
          {
            color: color,
            label_id: label_id,
            name: name,
            unread_count: unread_count,
          }
        end

        def color
          options["color"]
        end

        def label_id
          options["label_id"]
        end

        def name
          options["name"]
        end

        def unread_count
          options["unread_count"]
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eve_online-0.31.0 lib/eve_online/esi/models/mail_label.rb