class Openwsman::Fault
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_Fault(int argc, VALUE *argv, VALUE self) { WsXmlDocH arg1 = (WsXmlDocH) 0 ; void *argp1 = 0 ; int res1 = 0 ; struct _WsManFault *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p__WsXmlDoc, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "WsXmlDocH","_WsManFault", 1, argv[0] )); } arg1 = (WsXmlDocH)(argp1); result = (struct _WsManFault *)new__WsManFault(arg1); DATA_PTR(self) = result; return self; fail: return Qnil; }
Public Instance Methods
code(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Fault_code(int argc, VALUE *argv, VALUE self) { struct _WsManFault *arg1 = (struct _WsManFault *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WsManFault, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsManFault *","code", 1, self )); } arg1 = (struct _WsManFault *)(argp1); result = (char *)_WsManFault_code(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
detail(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Fault_detail(int argc, VALUE *argv, VALUE self) { struct _WsManFault *arg1 = (struct _WsManFault *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WsManFault, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsManFault *","detail", 1, self )); } arg1 = (struct _WsManFault *)(argp1); result = (char *)_WsManFault_detail(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
reason(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Fault_reason(int argc, VALUE *argv, VALUE self) { struct _WsManFault *arg1 = (struct _WsManFault *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WsManFault, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsManFault *","reason", 1, self )); } arg1 = (struct _WsManFault *)(argp1); result = (char *)_WsManFault_reason(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
subcode(*args)
click to toggle source
SWIGINTERN VALUE _wrap_Fault_subcode(int argc, VALUE *argv, VALUE self) { struct _WsManFault *arg1 = (struct _WsManFault *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WsManFault, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WsManFault *","subcode", 1, self )); } arg1 = (struct _WsManFault *)(argp1); result = (char *)_WsManFault_subcode(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
to_s()
click to toggle source
# File lib/openwsman/openwsman.rb, line 122 def to_s "Fault #{code}.#{subcode}: #{detail} - #{reason}" end