class Cb::Responses::SavedSearch::Retrieve

Protected Instance Methods

extract_models() click to toggle source
# File lib/cb/responses/saved_search/retrieve.rb, line 25
def extract_models
  Models::SavedSearch.new(model_hash)
end
hash_containing_metadata() click to toggle source
# File lib/cb/responses/saved_search/retrieve.rb, line 21
def hash_containing_metadata
  response
end
validate_api_hash() click to toggle source
# File lib/cb/responses/saved_search/retrieve.rb, line 17
def validate_api_hash
  required_response_field(root_node, response)
end

Private Instance Methods

model_hash() click to toggle source
# File lib/cb/responses/saved_search/retrieve.rb, line 35
def model_hash
  response[root_node][0]
end
root_node() click to toggle source
# File lib/cb/responses/saved_search/retrieve.rb, line 31
def root_node
  'Results'
end