Class: Octopush::SMS

Inherits:
Object
  • Object
show all
Defined in:
lib/octopush-ruby/sms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#msisdn_senderObject

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_namesObject

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_namesObject

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_idObject

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_modeObject

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_fields1Object

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_fields2Object

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_fields3Object

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_modeObject

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_recipientsObject

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_senderObject

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_textObject

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_typeObject

Returns the value of attribute sms_type.



3
4
5
# File 'lib/octopush-ruby/sms.rb', line 3

def sms_type
  @sms_type
end

#transactionalObject

Returns the value of attribute transactional.



3
4
5
# File 'lib/octopush-ruby/sms.rb', line 3

def transactional
  @transactional
end

#with_repliesObject

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_hashObject



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