# Ruby4Skype works?

**URL:** <https://www.ruby-forum.com/t/ruby4skype-works/176588>\
**Category:** Rails\
**Created:** [October 2, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/ruby4skype-works/176588 "2009-10-02T19:15:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [October 2, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/ruby4skype-works/176588/1 "2009-10-02T19:15:15Z")

</div>

I’ve installed ruby4skype.

I have tried a simple function with the methods found from the  
ruby4skype gems’ lib/sms.rb, trying to send a sms:  
@sms\_targets =[’+852123’, ‘+852456’]  
@sms\_id, @sms\_status = Skype::SMS.create @sms\_targets.first,  
‘OUTGOING’  
@sms\_body = ‘testing message’

```
logger.info "created #{@sms_id} #{@sms_status}: body #{@sms_body}"
Skype::SMS.set_target_number @sms_targets

Skype::SMS.set_body(@sms_body)
Skype::SMS.alert_sms @sms_id , 'SEND'

```

HOWEVER, it failed at the very beginning " Skype::SMS.create ".

With the error: undefined method ‘invoke’ in the sms.rb.
