Class: Rfsms::ReportAnswer::SMS
- Inherits:
-
Object
- Object
- Rfsms::ReportAnswer::SMS
- Defined in:
- lib/rfsms.rb
Instance Attribute Summary collapse
-
#all_col ⇒ Object
readonly
Returns the value of attribute all_col.
-
#datetime ⇒ Object
readonly
Returns the value of attribute datetime.
-
#delivered_col ⇒ Object
readonly
Returns the value of attribute delivered_col.
-
#enqueued_col ⇒ Object
readonly
Returns the value of attribute enqueued_col.
-
#not_delivered_col ⇒ Object
readonly
Returns the value of attribute not_delivered_col.
-
#payment ⇒ Object
readonly
Returns the value of attribute payment.
-
#smsid ⇒ Object
readonly
Returns the value of attribute smsid.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#waiting_col ⇒ Object
readonly
Returns the value of attribute waiting_col.
Instance Method Summary collapse
-
#initialize(elements) ⇒ SMS
constructor
A new instance of SMS.
Constructor Details
#initialize(elements) ⇒ SMS
Returns a new instance of SMS.
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/rfsms.rb', line 142 def initialize(elements) p elements if $DEBUG unless @smsid = elements[:smsid] and @datetime = elements[:datetime] and @datetime =~ DATEREGEXP and @text = elements[:text] and @source = elements[:source] and @all_col = elements[:all_col] and @delivered_col = elements[:delivered_col] and @not_delivered_col = elements[:not_delivered_col] and @waiting_col = elements[:waiting_col] and @enqueued_col = elements[:enqueued_col] and @payment = elements[:payment] raise IncorrectAnswerError end end |
Instance Attribute Details
#all_col ⇒ Object (readonly)
Returns the value of attribute all_col.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def all_col @all_col end |
#datetime ⇒ Object (readonly)
Returns the value of attribute datetime.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def datetime @datetime end |
#delivered_col ⇒ Object (readonly)
Returns the value of attribute delivered_col.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def delivered_col @delivered_col end |
#enqueued_col ⇒ Object (readonly)
Returns the value of attribute enqueued_col.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def enqueued_col @enqueued_col end |
#not_delivered_col ⇒ Object (readonly)
Returns the value of attribute not_delivered_col.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def not_delivered_col @not_delivered_col end |
#payment ⇒ Object (readonly)
Returns the value of attribute payment.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def payment @payment end |
#smsid ⇒ Object (readonly)
Returns the value of attribute smsid.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def smsid @smsid end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def source @source end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def text @text end |
#waiting_col ⇒ Object (readonly)
Returns the value of attribute waiting_col.
139 140 141 |
# File 'lib/rfsms.rb', line 139 def waiting_col @waiting_col end |