Class: Rfsms::CancelAnswer
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#cancel_col ⇒ Object
readonly
Returns the value of attribute cancel_col.
Attributes inherited from Answer
Instance Method Summary collapse
-
#initialize(body) ⇒ CancelAnswer
constructor
A new instance of CancelAnswer.
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
#action ⇒ Object (readonly)
Returns the value of attribute action.
53 54 55 |
# File 'lib/rfsms.rb', line 53 def action @action end |
#cancel_col ⇒ Object (readonly)
Returns the value of attribute cancel_col.
53 54 55 |
# File 'lib/rfsms.rb', line 53 def cancel_col @cancel_col end |