Class: Icalia::Event::DeserializableCodeIssue

Inherits:
DeserializableResource show all
Defined in:
lib/icalia-sdk-event-core/serialization/deserializable_code_issue.rb

Overview

DeserializableCodeIssue

Converts a JSONAPI.org serialization of a ‘CodeIssue` object from a Notification topic into an `ActionController::Parameters` object that can be used to create or update code issue data

Constant Summary collapse

LOCATION_DATA_KEYS =
%w[path start-line end-line]

Class Method Summary collapse

Methods inherited from DeserializableResource

classify_data, classify_type, get_stand_in, get_stand_ins

Class Method Details

.deserialize_location_data(location_data) ⇒ Object



12
13
14
15
16
# File 'lib/icalia-sdk-event-core/serialization/deserializable_code_issue.rb', line 12

def self.deserialize_location_data(location_data)
  location_data
    .slice(*LOCATION_DATA_KEYS)
    .transform_keys { |key| key.underscore.to_sym }
end