class CybridApiId::ApiError
def initialize(arg = nil)
ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
ApiError.new("message")
ApiError.new
Usage examples:
def initialize(arg = nil) if arg.is_a? Hash if arg.key?(:message) || arg.key?('message') super(arg[:message] || arg['message']) else super arg end arg.each do |k, v| instance_variable_set "@#{k}", v end else super arg end end