Class: SmsAero2::HlrResult

Inherits:
Result
  • Object
show all
Defined in:
lib/sms_aero2/hlr_result.rb

Instance Attribute Summary

Attributes inherited from Result

#response

Instance Method Summary collapse

Methods inherited from Result

#data, #initialize, #reason, #success?

Constructor Details

This class inherits a constructor from SmsAero2::Result

Instance Method Details

#idObject



3
4
5
# File 'lib/sms_aero2/hlr_result.rb', line 3

def id
  data.fetch('id')
end

#statusObject



7
8
9
# File 'lib/sms_aero2/hlr_result.rb', line 7

def status
  statuses[data.fetch('hlrStatus') - 1]
end