Class: Pdf4me::DocLog
Constant Summary collapse
- ATTRIBUTES =
{ message_type: 'String', message: 'String', timestamp: 'DateTime', doc_log_level: 'String', duration_milliseconds: 'Integer' }
- LOG_LEVELS =
%w|verbose info warning error timing|.freeze
Instance Method Summary collapse
Methods inherited from Base
#attributes, #defaults, #initialize
Methods included from Serializer
#_deserialize, #from_hash, #from_response
Methods included from Assigner
Constructor Details
This class inherits a constructor from Pdf4me::Base
Instance Method Details
#doc_log_level=(level) ⇒ Object
14 15 16 |
# File 'lib/pdf4me/models/doc_log.rb', line 14 def doc_log_level=(level) @doc_log_level = LOG_LEVELS[level.to_i] end |