Class: EveOnline::ESI::Resources::LoyaltyPointsResources

Inherits:
Resource
  • Object
show all
Defined in:
lib/eve_online/esi/resources/loyalty_points_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

#loyalty_points(id:) ⇒ Object

Parameters:

  • id (Integer)

    A character ID



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

def loyalty_points(id:)
  response = get_request("characters/#{id}/loyalty/points")

  Collection.from_response(response, type: Models::LoyaltyPoint)
end

#offers(id:) ⇒ Object

Parameters:

  • id (Integer)

    A corporation ID



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

def offers(id:)
  response = get_request("loyalty/stores/#{id}/offers")

  Collection.from_response(response, type: Models::LoyaltyStoreOffer)
end