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.



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

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

Instance Attribute Details

#messagesObject

Returns the value of attribute messages.



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

def messages
  @messages
end

Instance Method Details

#to_sObject



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

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