Class: EveOnline::ESI::CharacterGetMail
- Extended by:
- Forwardable
- Defined in:
- lib/eve_online/esi/character_get_mail.rb
Constant Summary collapse
- API_PATH =
"/v1/characters/%<character_id>s/mail/%<mail_id>s/"
Constants inherited from Base
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
-
#mail_id ⇒ Object
readonly
Returns the value of attribute mail_id.
Attributes inherited from Base
#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token
Instance Method Summary collapse
-
#initialize(options) ⇒ CharacterGetMail
constructor
A new instance of CharacterGetMail.
- #model ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
Methods inherited from Base
#add_middleware, #additional_query_params, #base_query_params, #connection, #error_limit_remain, #error_limit_reset, #http_method, #open_timeout, #open_timeout=, #page, #query, #read_timeout, #read_timeout=, #request_id, #resource, #response, #total_pages, #uri, #url, #user_agent, #write_timeout, #write_timeout=
Constructor Details
#initialize(options) ⇒ CharacterGetMail
Returns a new instance of CharacterGetMail.
14 15 16 17 18 19 |
# File 'lib/eve_online/esi/character_get_mail.rb', line 14 def initialize() super @character_id = .fetch(:character_id) @mail_id = .fetch(:mail_id) end |
Instance Attribute Details
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
12 13 14 |
# File 'lib/eve_online/esi/character_get_mail.rb', line 12 def character_id @character_id end |
#mail_id ⇒ Object (readonly)
Returns the value of attribute mail_id.
12 13 14 |
# File 'lib/eve_online/esi/character_get_mail.rb', line 12 def mail_id @mail_id end |
Instance Method Details
#model ⇒ Object
24 25 26 |
# File 'lib/eve_online/esi/character_get_mail.rb', line 24 def model @model ||= Models::Mail.new(response) end |
#path ⇒ Object
32 33 34 |
# File 'lib/eve_online/esi/character_get_mail.rb', line 32 def path format(API_PATH, character_id: character_id, mail_id: mail_id) end |
#scope ⇒ Object
28 29 30 |
# File 'lib/eve_online/esi/character_get_mail.rb', line 28 def scope "esi-mail.read_mail.v1" end |