Class: Zaala::API::CancellationResponse

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/zaala/api/types.rb

Class Method Summary collapse

Class Method Details

.from_message(h) ⇒ Object



743
744
745
746
747
748
# File 'lib/zaala/api/types.rb', line 743

def self.from_message(h)
  CancellationResponse.new({
    identifier: Zaala::API::ResponseIdentifier.from_message(h[:identifier]),
    info: h[:info] ? Zaala::API::Info.from_message(h[:info]) : nil,
  })
end