class NexosisApi::Message
class to provide message responses @since 1.4.1
Attributes
message[RW]
The content of the message @return [String]
severity[RW]
The type of message: information, warning, or error @return [String]
Public Class Methods
new(message_hash)
click to toggle source
# File lib/nexosis_api/message.rb, line 5 def initialize(message_hash) message_hash.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end