Exception: IfreeSms::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ APIError

Returns a new instance of APIError.



51
52
53
54
# File 'lib/ifree_sms.rb', line 51

def initialize(details = {})
  self.sms_error_type = details["type"]
  super("#{sms_error_type}: #{details["message"]}")
end

Instance Attribute Details

#sms_error_typeObject

Returns the value of attribute sms_error_type.



50
51
52
# File 'lib/ifree_sms.rb', line 50

def sms_error_type
  @sms_error_type
end