Class: EveOnline::ESI::Resources::LoyaltyPointsResources
- Defined in:
- lib/eve_online/esi/resources/loyalty_points_resources.rb
Instance Attribute Summary
Attributes inherited from Resource
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
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
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 |