Sha256: fee9053254a5c8d6bee99c00dda9e2ff472883401b19678dd3b025cc6932b966
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
# frozen_string_literal: true module Logux class Response attr_reader :status, :action, :meta, :custom_data def initialize(status, action:, meta:, custom_data: nil) @status = status @action = action @meta = meta @custom_data = custom_data end def format [status, custom_data || meta.id] end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
logux-rack-0.1.0 | lib/logux/response.rb |
logux_rails-0.1.0 | lib/logux/response.rb |