Class: EveOnline::ESI::Models::LoyaltyStoreOffer

Inherits:
Object
  • Object
show all
Defined in:
lib/eve_online/esi/models/loyalty_store_offer.rb

Instance Attribute Summary

Attributes inherited from Object

#attributes, #body, #headers

Instance Method Summary collapse

Methods inherited from Object

#initialize, #method_missing, #respond_to_missing?

Methods included from ParsedHeaders

#cache_status, #error_limit_remain, #error_limit_reset, #etag, #ratelimit_group, #ratelimit_limit, #ratelimit_remaining, #ratelimit_used, #request_id, #total_pages

Constructor Details

This class inherits a constructor from EveOnline::ESI::Object

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EveOnline::ESI::Object

Instance Method Details

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/eve_online/esi/models/loyalty_store_offer.rb', line 7

def as_json
  {
    ak_cost: attributes.ak_cost,
    isk_cost: attributes.isk_cost,
    lp_cost: attributes.lp_cost,
    offer_id: attributes.offer_id,
    quantity: attributes.quantity,
    type_id: attributes.type_id
  }
end

#offer_required_itemsObject



18
19
20
# File 'lib/eve_online/esi/models/loyalty_store_offer.rb', line 18

def offer_required_items
  @offer_required_items ||= Collection.from_array(attributes.required_items || [], type: OfferRequiredItem)
end