class MAuth::Faraday::Response

representation of a Response (incoming) composed from a Faraday response env which can be passed to a Mauth::Client for authentication

Attributes

response_env[R]

Public Class Methods

new(response_env) click to toggle source
# File lib/mauth/faraday.rb, line 62
def initialize(response_env)
  @response_env = response_env
end

Public Instance Methods

attributes_for_signing() click to toggle source
# File lib/mauth/faraday.rb, line 66
def attributes_for_signing
  @attributes_for_signing ||= { status_code: response_env[:status], body: response_env[:body] }
end
mcc_authentication() click to toggle source
# File lib/mauth/faraday.rb, line 82
def mcc_authentication
  @response_env[:response_headers]['mcc-authentication']
end
mcc_time() click to toggle source
# File lib/mauth/faraday.rb, line 78
def mcc_time
  @response_env[:response_headers]['mcc-time']
end
x_mws_authentication() click to toggle source
# File lib/mauth/faraday.rb, line 74
def x_mws_authentication
  @response_env[:response_headers]['x-mws-authentication']
end
x_mws_time() click to toggle source
# File lib/mauth/faraday.rb, line 70
def x_mws_time
  @response_env[:response_headers]['x-mws-time']
end