Class: Rfsms::ReportAnswer::SMS

Inherits:
Object
  • Object
show all
Defined in:
lib/rfsms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_colObject (readonly)

Returns the value of attribute all_col.



139
140
141
# File 'lib/rfsms.rb', line 139

def all_col
  @all_col
end

#datetimeObject (readonly)

Returns the value of attribute datetime.



139
140
141
# File 'lib/rfsms.rb', line 139

def datetime
  @datetime
end

#delivered_colObject (readonly)

Returns the value of attribute delivered_col.



139
140
141
# File 'lib/rfsms.rb', line 139

def delivered_col
  @delivered_col
end

#enqueued_colObject (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_colObject (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

#paymentObject (readonly)

Returns the value of attribute payment.



139
140
141
# File 'lib/rfsms.rb', line 139

def payment
  @payment
end

#smsidObject (readonly)

Returns the value of attribute smsid.



139
140
141
# File 'lib/rfsms.rb', line 139

def smsid
  @smsid
end

#sourceObject (readonly)

Returns the value of attribute source.



139
140
141
# File 'lib/rfsms.rb', line 139

def source
  @source
end

#textObject (readonly)

Returns the value of attribute text.



139
140
141
# File 'lib/rfsms.rb', line 139

def text
  @text
end

#waiting_colObject (readonly)

Returns the value of attribute waiting_col.



139
140
141
# File 'lib/rfsms.rb', line 139

def waiting_col
  @waiting_col
end