Class: Cb::Responses::Job::Report

Inherits:
ApiResponse show all
Defined in:
lib/cb/responses/job/report.rb

Instance Attribute Summary

Attributes inherited from ApiResponse

#models, #response

Instance Method Summary collapse

Methods inherited from ApiResponse

#initialize

Constructor Details

This class inherits a constructor from Cb::Responses::ApiResponse

Instance Method Details

#extract_modelsObject



25
26
27
# File 'lib/cb/responses/job/report.rb', line 25

def extract_models
  Cb::Models::ReportJob.new(response)
end

#hash_containing_metadataObject



17
18
19
# File 'lib/cb/responses/job/report.rb', line 17

def 
  response
end

#success_nodeObject



29
30
31
# File 'lib/cb/responses/job/report.rb', line 29

def success_node
  'Success'
end

#validate_api_hashObject



21
22
23
# File 'lib/cb/responses/job/report.rb', line 21

def validate_api_hash
  required_response_field(success_node, response)
end