Sha256: 0ea2b6f2315a24707f7d19f95308adb83cf4bf990d29b737b62b678e1656d82f

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

class GoogleApiClient
  def self.client( identity )
    client = Google::APIClient.new(:application_name => 'HappySeed App', :application_version => "1.0.0" )
    client.authorization.update_token!({:access_token => identity.accesstoken, :refresh_token => identity.refreshtoken})
    client
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
happy_seed-0.0.13 lib/generators/happy_seed/googleoauth/templates/lib/google_api_client.rb