class Deploygate::Client::Response

Api response

Attributes

body[RW]
headers[RW]
status[RW]

Public Class Methods

new(f_response) click to toggle source
# File lib/deploygate/client/response.rb, line 9
def initialize(f_response)
  @body = f_response.body
  @headers = f_response.headers
  @status = f_response.status
end

Public Instance Methods

success?() click to toggle source
# File lib/deploygate/client/response.rb, line 15
def success?
  (200..299).include?(status)
end