Class: EveOnline::ESI::Resources::DogmaResources

Inherits:
Resource
  • Object
show all
Defined in:
lib/eve_online/esi/resources/dogma_resources.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#default_headers, #get_request, #initialize, #post_request, #user_agent

Constructor Details

This class inherits a constructor from EveOnline::ESI::Resources::Resource

Instance Method Details

#attribute(id:) ⇒ Object

Parameters:

  • id (Integer)

    Attribute ID



14
15
16
17
18
# File 'lib/eve_online/esi/resources/dogma_resources.rb', line 14

def attribute(id:)
  response = get_request("dogma/attributes/#{id}")

  Models::DogmaAttribute.new(attributes: response.body, headers: response.headers)
end

#attributesObject



7
8
9
10
11
# File 'lib/eve_online/esi/resources/dogma_resources.rb', line 7

def attributes
  response = get_request("dogma/attributes")

  Models::DogmaAttributes.new(body: response.body, headers: response.headers)
end

#effect(id:) ⇒ Object

Parameters:

  • id (Integer)

    Effect ID



27
28
29
30
31
# File 'lib/eve_online/esi/resources/dogma_resources.rb', line 27

def effect(id:)
  response = get_request("dogma/effects/#{id}")

  Models::DogmaEffect.new(attributes: response.body, headers: response.headers)
end

#effectsObject



20
21
22
23
24
# File 'lib/eve_online/esi/resources/dogma_resources.rb', line 20

def effects
  response = get_request("dogma/effects")

  Models::DogmaEffects.new(body: response.body, headers: response.headers)
end