Exception: Keysms::NotAuthenticatedError

Inherits:
SMSError
  • Object
show all
Defined in:
lib/keysms.rb

Instance Attribute Summary collapse

Attributes inherited from SMSError

#error

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ NotAuthenticatedError

Returns a new instance of NotAuthenticatedError.



130
131
132
133
# File 'lib/keysms.rb', line 130

def initialize(error)
  @messages = error["messages"]
  super(error)
end

Instance Attribute Details

#messagesObject

Returns the value of attribute messages.



128
129
130
# File 'lib/keysms.rb', line 128

def messages
  @messages
end

Instance Method Details

#to_sObject



135
136
137
# File 'lib/keysms.rb', line 135

def to_s
  @messages.join(", ")
end