Class: Infobip::SmsApi::Response::ServiceException

Inherits:
Object
  • Object
show all
Defined in:
lib/infobip/sms_api/response/service_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ ServiceException

Returns a new instance of ServiceException.



8
9
10
11
# File 'lib/infobip/sms_api/response/service_exception.rb', line 8

def initialize(attributes)
  @message_id = attributes['messageId']
  @text = attributes['text']
end

Instance Attribute Details

#message_idObject (readonly)

Returns the value of attribute message_id.



6
7
8
# File 'lib/infobip/sms_api/response/service_exception.rb', line 6

def message_id
  @message_id
end

#textObject (readonly)

Returns the value of attribute text.



6
7
8
# File 'lib/infobip/sms_api/response/service_exception.rb', line 6

def text
  @text
end