Class: Sharemotion::SHMSms
- Defined in:
- lib/sharemotion/sharers/sms/shmsms.rb
Instance Attribute Summary
Attributes inherited from Sharer
Instance Method Summary collapse
Instance Method Details
#initWithItem(item, &block) ⇒ Object
5 6 7 8 |
# File 'lib/sharemotion/sharers/sms/shmsms.rb', line 5 def initWithItem(item, &block) self.sharer_title = self.to_s super(item, &block) end |
#share(controller) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/sharemotion/sharers/sms/shmsms.rb', line 14 def share(controller) if MFMessageComposeViewController.canSendText sms_composer_view = SHMSmsComposerView.alloc.initWithItem(@item, controller:controller) sms_composer_view.display end end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/sharemotion/sharers/sms/shmsms.rb', line 10 def to_s "Sms" end |