Class: Neoway::Auth::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/neoway/auth/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body:, headers:, request:, status:, time:) ⇒ Result

Returns a new instance of Result.



8
9
10
11
12
13
14
# File 'lib/neoway/auth/result.rb', line 8

def initialize(body:, headers:, request:, status:, time:)
  @body    = body
  @headers = headers
  @request = request
  @status  = status
  @time    = time
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



6
7
8
# File 'lib/neoway/auth/result.rb', line 6

def body
  @body
end

#headersObject

Returns the value of attribute headers.



6
7
8
# File 'lib/neoway/auth/result.rb', line 6

def headers
  @headers
end

#requestObject

Returns the value of attribute request.



6
7
8
# File 'lib/neoway/auth/result.rb', line 6

def request
  @request
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/neoway/auth/result.rb', line 6

def status
  @status
end

#timeObject

Returns the value of attribute time.



6
7
8
# File 'lib/neoway/auth/result.rb', line 6

def time
  @time
end