Class: Rfsms::CancelAnswer

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

Instance Attribute Summary collapse

Attributes inherited from Answer

#descr

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ CancelAnswer

Returns a new instance of CancelAnswer.



55
56
57
58
59
60
# File 'lib/rfsms.rb', line 55

def initialize(body)
  super(body) do |e|
    e[:action] =~ /^(?:check|make)$/
  end
  @cancel_col = @cancel_col.to_i
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



53
54
55
# File 'lib/rfsms.rb', line 53

def action
  @action
end

#cancel_colObject (readonly)

Returns the value of attribute cancel_col.



53
54
55
# File 'lib/rfsms.rb', line 53

def cancel_col
  @cancel_col
end