Class: Octopush::SMS
- Inherits:
-
Object
- Object
- Octopush::SMS
- Defined in:
- lib/octopush-ruby/sms.rb
Instance Attribute Summary collapse
-
#msisdn_sender ⇒ Object
Returns the value of attribute msisdn_sender.
-
#recipients_first_names ⇒ Object
Returns the value of attribute recipients_first_names.
-
#recipients_last_names ⇒ Object
Returns the value of attribute recipients_last_names.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#request_mode ⇒ Object
Returns the value of attribute request_mode.
-
#sms_fields1 ⇒ Object
Returns the value of attribute sms_fields1.
-
#sms_fields2 ⇒ Object
Returns the value of attribute sms_fields2.
-
#sms_fields3 ⇒ Object
Returns the value of attribute sms_fields3.
-
#sms_mode ⇒ Object
Returns the value of attribute sms_mode.
-
#sms_recipients ⇒ Object
Returns the value of attribute sms_recipients.
-
#sms_sender ⇒ Object
Returns the value of attribute sms_sender.
-
#sms_text ⇒ Object
Returns the value of attribute sms_text.
-
#sms_type ⇒ Object
Returns the value of attribute sms_type.
-
#transactional ⇒ Object
Returns the value of attribute transactional.
-
#with_replies ⇒ Object
Returns the value of attribute with_replies.
Instance Method Summary collapse
Instance Attribute Details
#msisdn_sender ⇒ Object
Returns the value of attribute msisdn_sender.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def msisdn_sender @msisdn_sender end |
#recipients_first_names ⇒ Object
Returns the value of attribute recipients_first_names.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def recipients_first_names @recipients_first_names end |
#recipients_last_names ⇒ Object
Returns the value of attribute recipients_last_names.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def recipients_last_names @recipients_last_names end |
#request_id ⇒ Object
Returns the value of attribute request_id.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def request_id @request_id end |
#request_mode ⇒ Object
Returns the value of attribute request_mode.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def request_mode @request_mode end |
#sms_fields1 ⇒ Object
Returns the value of attribute sms_fields1.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_fields1 @sms_fields1 end |
#sms_fields2 ⇒ Object
Returns the value of attribute sms_fields2.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_fields2 @sms_fields2 end |
#sms_fields3 ⇒ Object
Returns the value of attribute sms_fields3.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_fields3 @sms_fields3 end |
#sms_mode ⇒ Object
Returns the value of attribute sms_mode.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_mode @sms_mode end |
#sms_recipients ⇒ Object
Returns the value of attribute sms_recipients.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_recipients @sms_recipients end |
#sms_sender ⇒ Object
Returns the value of attribute sms_sender.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_sender @sms_sender end |
#sms_text ⇒ Object
Returns the value of attribute sms_text.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_text @sms_text end |
#sms_type ⇒ Object
Returns the value of attribute sms_type.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def sms_type @sms_type end |
#transactional ⇒ Object
Returns the value of attribute transactional.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def transactional @transactional end |
#with_replies ⇒ Object
Returns the value of attribute with_replies.
3 4 5 |
# File 'lib/octopush-ruby/sms.rb', line 3 def with_replies @with_replies end |
Instance Method Details
#variables_hash ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/octopush-ruby/sms.rb', line 9 def variables_hash hash = {} self.instance_variables.each do |variable| var = variable.to_s.sub('@', '') key = var.to_sym value = self.send(var) hash = hash.merge(key => value) end hash end |