Class: Api::Vendor::V1::Klook::SuppliersController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- Api::Vendor::V1::Klook::SuppliersController
- Defined in:
- app/controllers/api/vendor/v1/klook/suppliers_controller.rb
Constant Summary
Constants inherited from BaseController
BaseController::CACHE_NAMESPACE
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
Methods inherited from BaseController
Methods included from ResponseCacheConcern
Methods included from EncryptableHelper
#decrypt, #encrypt, #generate_signature
Methods inherited from ApplicationController
#after_sign_in_path_for, #after_sign_out_path_for, #default_url_options, #identity_cache_memoization, #render_not_found, #routing_error, search_params_key=
Methods included from LogrageCustomLogger
Methods included from ControllerHelpers
#check_boolean_param, #get_banners, #inventory_params, #reservation_params
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/api/vendor/v1/klook/suppliers_controller.rb', line 3 def index supplier = Channel.find_by(channel_id: 0) cache_key = "#{CACHE_NAMESPACE}:#{self.class}:#{__method__}" my_response_cache cache_key, :json, public: true do Api::Vendor::V1::Klook::SupplierSerializer.new(supplier) end end |