lib/gcloud/bigquery/dataset/list.rb in gcloud-0.6.3 vs lib/gcloud/bigquery/dataset/list.rb in gcloud-0.7.0

- old
+ new

@@ -1,6 +1,5 @@ -#-- # Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,10 +10,11 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + require "delegate" module Gcloud module Bigquery class Dataset @@ -34,11 +34,11 @@ def initialize arr = [] super arr end ## - # New Dataset::List from a response object. - def self.from_response resp, conn #:nodoc: + # @private New Dataset::List from a response object. + def self.from_response resp, conn datasets = List.new(Array(resp.data["datasets"]).map do |gapi_object| Dataset.from_gapi gapi_object, conn end) datasets.instance_eval do @token = resp.data["nextPageToken"]