lib/ury_rapid/baps/responses/handlers/loader.rb
# Converts a `loaded' response into a pair of load-state and item
#
# @api private
#
# @return [Array] The following items:
#   - The loading state (:ok, :loading, :empty or :failed);
#   - Either nil (no loaded item) or an Item representing the loaded
#     item.
Converts a `loaded' response into a pair of load-state and item
Converts a ` loaded ' response into a pair of load - state and item
def response_to_item_and_load_state
            load_state = decide_load_state
            item = make_item if normal_load_state(load_state)
            [item, load_state_to_constant(load_state)]
          end
def response_to_item_and_load_state load_state = decide_load_state item = make_item if normal_load_state ( load_state ) [ item , load_state_to_constant ( load_state ) ] end
Converts a `loaded' response into a pair of load-state and item
Converts a ` loaded ' response into a pair of load - state and item
The following items: - The loading state (:ok, :loading, :empty or :failed); - Either nil (no loaded item) or an Item representing the loaded item.
The following items : - The loading state ( : ok : loading : empty or : failed ) ; - Either nil ( no loaded item ) or an Item representing the loaded item .
Array
api
None