Class: ActiveSmsgate::Gateway::Amegainform::ResultSms::Message

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/active_smsgate/gateways/amegainform.rb

Instance Method Summary collapse

Instance Method Details

#completeObject Also known as: complete?



187
# File 'lib/active_smsgate/gateways/amegainform.rb', line 187

def complete; true if sms_closed.to_i == 1; end

#failureObject Also known as: failure?



193
# File 'lib/active_smsgate/gateways/amegainform.rb', line 193

def failure; true unless success?;  end

#successObject Also known as: success?



190
# File 'lib/active_smsgate/gateways/amegainform.rb', line 190

def success; true if sms_sent.to_i == 1; end