class Cb::Responses::Metadata
Attributes
errors[R]
response[R]
should_raise[R]
timing[R]
Public Class Methods
new(raw_response_hash, raise_on_timing_missing = true)
click to toggle source
# File lib/cb/responses/metadata.rb, line 16 def initialize(raw_response_hash, raise_on_timing_missing = true) @response = raw_response_hash @should_raise = raise_on_timing_missing @errors = parsed_errors @timing = parsed_timing_info end
Private Instance Methods
parsed_errors()
click to toggle source
# File lib/cb/responses/metadata.rb, line 27 def parsed_errors Errors.new(response) end
parsed_timing_info()
click to toggle source
# File lib/cb/responses/metadata.rb, line 31 def parsed_timing_info Timing.new(response, should_raise) end