class PusherPlatform::AuthenticationResponse
Attributes
body[R]
headers[R]
status[R]
Public Class Methods
new(options)
click to toggle source
# File lib/pusher-platform/authentication_response.rb, line 5 def initialize(options) @status = options[:status] @headers = options[:headers] || {} @body = options[:body] end
Public Instance Methods
as_json(options = {})
click to toggle source
# File lib/pusher-platform/authentication_response.rb, line 15 def as_json(options = {}) { status: @status, headers: @headers, body: @body } end
to_json(*options)
click to toggle source
# File lib/pusher-platform/authentication_response.rb, line 23 def to_json(*options) as_json(*options).to_json(*options) end
to_s()
click to toggle source
# File lib/pusher-platform/authentication_response.rb, line 11 def to_s "PusherPlatform::AuthenticationResponse - status: #{@status} body: #{@body.to_json}" end