Class: EveOnline::ESI::Models::MailLabel

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/mail_label.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#as_jsonObject



7
8
9
10
11
12
13
14
# File 'lib/eve_online/esi/models/mail_label.rb', line 7

def as_json
  {
    color: color,
    label_id: label_id,
    name: name,
    unread_count: unread_count
  }
end

#colorObject



16
17
18
# File 'lib/eve_online/esi/models/mail_label.rb', line 16

def color
  options["color"]
end

#label_idObject



20
21
22
# File 'lib/eve_online/esi/models/mail_label.rb', line 20

def label_id
  options["label_id"]
end

#nameObject



24
25
26
# File 'lib/eve_online/esi/models/mail_label.rb', line 24

def name
  options["name"]
end

#unread_countObject



28
29
30
# File 'lib/eve_online/esi/models/mail_label.rb', line 28

def unread_count
  options["unread_count"]
end