class AfTalk::FetchMessagesResponse

Attributes

messages[R]

Public Class Methods

new(response) click to toggle source
Calls superclass method AfTalk::Response::new
# File lib/aftalk/responses/fetch_messages_response.rb, line 5
def initialize(response)
  super(response)
  if success?
    @messages = body_data[:Messages].map do |message_data|
      AfTalk::SmsMessageInfo.new(message_data)
    end
  end
end

Private Instance Methods

body_data() click to toggle source
# File lib/aftalk/responses/fetch_messages_response.rb, line 16
def body_data
  body[:SMSMessageData]
end