Class: EveOnline::ESI::CorporationLoyaltyStoreOffers
- Defined in:
- lib/eve_online/esi/corporation_loyalty_store_offers.rb
Constant Summary collapse
- API_PATH =
"/v1/loyalty/stores/%<corporation_id>s/offers/"
Constants inherited from Base
Instance Attribute Summary collapse
-
#corporation_id ⇒ Object
readonly
Returns the value of attribute corporation_id.
Attributes inherited from Base
#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CorporationLoyaltyStoreOffers
constructor
A new instance of CorporationLoyaltyStoreOffers.
- #offers ⇒ Object
- #path ⇒ Object
- #roles ⇒ 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 = {}) ⇒ CorporationLoyaltyStoreOffers
Returns a new instance of CorporationLoyaltyStoreOffers.
10 11 12 13 14 |
# File 'lib/eve_online/esi/corporation_loyalty_store_offers.rb', line 10 def initialize( = {}) super @corporation_id = .fetch(:corporation_id) end |
Instance Attribute Details
#corporation_id ⇒ Object (readonly)
Returns the value of attribute corporation_id.
8 9 10 |
# File 'lib/eve_online/esi/corporation_loyalty_store_offers.rb', line 8 def corporation_id @corporation_id end |
Instance Method Details
#offers ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/eve_online/esi/corporation_loyalty_store_offers.rb', line 16 def offers @offers ||= begin output = [] response.each do |offer| output << Models::LoyaltyStoreOffer.new(offer) end output end end |
#path ⇒ Object
34 35 36 |
# File 'lib/eve_online/esi/corporation_loyalty_store_offers.rb', line 34 def path format(API_PATH, corporation_id: corporation_id) end |
#roles ⇒ Object
30 31 32 |
# File 'lib/eve_online/esi/corporation_loyalty_store_offers.rb', line 30 def roles [] end |
#scope ⇒ Object
27 28 |
# File 'lib/eve_online/esi/corporation_loyalty_store_offers.rb', line 27 def scope end |