class MessageExchange::Response

Attributes

api_response[R]
body[RW]
status[RW]

Public Class Methods

new(api_response) click to toggle source
# File lib/message_exchange/response.rb, line 5
def initialize(api_response)
  @api_response = api_response
end

Public Instance Methods

success?() click to toggle source
# File lib/message_exchange/response.rb, line 17
def success?
  (200..206).include?(status)
end