Class: Avmtrf1::Esosti::Entities::Issue

Inherits:
RestProvider::Entity show all
Defined in:
lib/avmtrf1/esosti/entities/issue.rb

Instance Attribute Summary

Attributes inherited from RestProvider::Entity

#data, #instance

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance, data) ⇒ Issue

Returns a new instance of Issue.


18
19
20
# File 'lib/avmtrf1/esosti/entities/issue.rb', line 18

def initialize(instance, data)
  super instance, data
end

Class Method Details

.parse_data(data) ⇒ Object


11
12
13
14
15
# File 'lib/avmtrf1/esosti/entities/issue.rb', line 11

def parse_data(data)
  data.fetch('QueryMS_RMTICKETResponse')['MS_RMTICKETSet'].if_present(nil) do |v|
    ::Avmtrf1::Esosti::RawDataSanitizer.sanitize(v.fetch('TICKET'))
  end
end