Class: BoogieTools::BounceStudio
- Inherits:
-
Object
- Object
- BoogieTools::BounceStudio
- Defined in:
- ext/bounce_studio.c
Instance Method Summary collapse
-
#body(raw) ⇒ Object
BounceStudio#get_body(raw) wraps C bsGetBody().
-
#check(raw) ⇒ Object
BounceStudio#check(raw) wraps C bsBounceCheck().
-
#custom_header(raw, header) ⇒ Object
BounceStudio#custom_header(raw) wraps C bsGetCustomHeader().
-
#from_address(raw) ⇒ Object
BounceStudio#from_address(raw) wraps C bsGetFromAddress().
-
#from_friendly_name(raw) ⇒ Object
BounceStudio#from_friendly_name(raw) wraps C bsGetFromFriendlyName().
-
#header(raw) ⇒ Object
BounceStudio#header(raw) wraps C bsGetHeader().
- #initialize(lic_string) ⇒ Object constructor
-
#orig_custom_header(raw, header) ⇒ Object
BounceStudio#orig_custom_header(raw) wraps C bsGetOrigCustomHeader().
-
#reply_to_address(raw) ⇒ Object
BounceStudio#reply_to_address(raw) wraps C bsGetReplyToAddress().
-
#reply_to_friendly_name(raw) ⇒ Object
BounceStudio#reply_to_friendly_name(raw) wraps C bsGetReplyToFriendlyName().
-
#subject(raw) ⇒ Object
BounceStudio#subject(raw) wraps C bsGetSubject().
-
#to_address(raw) ⇒ Object
BounceStudio#to_address(raw) wraps C bsGetToAddress().
-
#to_friendly_name(raw) ⇒ Object
BounceStudio#to_friendly_name(raw) wraps C bsGetToFriendlyName().
Constructor Details
#initialize(lic_string) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ext/bounce_studio.c', line 32
static VALUE rb_bs_init(VALUE self, VALUE lic_string) {
if( bs_initialized != 1 ) {
bsBounceStudio_init();
bs_initialized = 1;
}
license = StringValuePtr(lic_string);
return Qtrue;
}
|
Instance Method Details
#body(raw) ⇒ Object
BounceStudio#get_body(raw)
wraps C bsGetBody()
60 61 62 63 64 65 66 67 68 |
# File 'ext/bounce_studio.c', line 60
static VALUE rb_bs_body(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetBody(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#check(raw) ⇒ Object
BounceStudio#check(raw)
wraps C bsBounceCheck()
45 46 47 48 49 50 51 52 53 54 |
# File 'ext/bounce_studio.c', line 45
static VALUE rb_bs_check(VALUE self, VALUE raw) {
int BounceCode;
char *RawMessage, *EmailAddress;
RawMessage = StringValuePtr(raw);
BounceCode = bsBounceCheck(RawMessage, &EmailAddress, "", license);
return INT2NUM(BounceCode);
}
|
#custom_header(raw, header) ⇒ Object
BounceStudio#custom_header(raw)
wraps C bsGetCustomHeader()
186 187 188 189 190 191 192 193 194 195 196 |
# File 'ext/bounce_studio.c', line 186
static VALUE rb_bs_custom_header(VALUE self, VALUE raw, VALUE header) {
char *RawMessage;
char *Header;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
Header = StringValuePtr(header);
bsGetCustomHeader(RawMessage, &ReturnValue, Header);
return rb_str_new2(ReturnValue);
}
|
#from_address(raw) ⇒ Object
BounceStudio#from_address(raw)
wraps C bsGetFromAddress()
74 75 76 77 78 79 80 81 82 |
# File 'ext/bounce_studio.c', line 74
static VALUE rb_bs_from_address(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetFromAddress(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#from_friendly_name(raw) ⇒ Object
BounceStudio#from_friendly_name(raw)
wraps C bsGetFromFriendlyName()
88 89 90 91 92 93 94 95 96 |
# File 'ext/bounce_studio.c', line 88
static VALUE rb_bs_from_friendly_name(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetFromFriendlyName(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#header(raw) ⇒ Object
BounceStudio#header(raw)
wraps C bsGetHeader()
102 103 104 105 106 107 108 109 110 |
# File 'ext/bounce_studio.c', line 102
static VALUE rb_bs_header(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetHeader(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#orig_custom_header(raw, header) ⇒ Object
BounceStudio#orig_custom_header(raw)
wraps C bsGetOrigCustomHeader()
202 203 204 205 206 207 208 209 210 211 212 |
# File 'ext/bounce_studio.c', line 202
static VALUE rb_bs_orig_custom_header(VALUE self, VALUE raw, VALUE header) {
char *RawMessage;
char *Header;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
Header = StringValuePtr(header);
bsGetOrigCustomHeader(RawMessage, &ReturnValue, Header);
return rb_str_new2(ReturnValue);
}
|
#reply_to_address(raw) ⇒ Object
BounceStudio#reply_to_address(raw)
wraps C bsGetReplyToAddress()
116 117 118 119 120 121 122 123 124 |
# File 'ext/bounce_studio.c', line 116
static VALUE rb_bs_reply_to_address(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetReplyToAddress(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#reply_to_friendly_name(raw) ⇒ Object
BounceStudio#reply_to_friendly_name(raw)
wraps C bsGetReplyToFriendlyName()
130 131 132 133 134 135 136 137 138 |
# File 'ext/bounce_studio.c', line 130
static VALUE rb_bs_reply_to_friendly_name(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetReplyToFriendlyName(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#subject(raw) ⇒ Object
BounceStudio#subject(raw)
wraps C bsGetSubject()
144 145 146 147 148 149 150 151 152 |
# File 'ext/bounce_studio.c', line 144
static VALUE rb_bs_subject(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetSubject(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#to_address(raw) ⇒ Object
BounceStudio#to_address(raw)
wraps C bsGetToAddress()
158 159 160 161 162 163 164 165 166 |
# File 'ext/bounce_studio.c', line 158
static VALUE rb_bs_to_address(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetToAddress(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|
#to_friendly_name(raw) ⇒ Object
BounceStudio#to_friendly_name(raw)
wraps C bsGetToFriendlyName()
172 173 174 175 176 177 178 179 180 |
# File 'ext/bounce_studio.c', line 172
static VALUE rb_bs_to_friendly_name(VALUE self, VALUE raw) {
char *RawMessage;
char *ReturnValue = NULL;
RawMessage = StringValuePtr(raw);
bsGetToFriendlyName(RawMessage, &ReturnValue);
return rb_str_new2(ReturnValue);
}
|