class GooglePlus::API

Public Class Methods

new(attrs={}) click to toggle source

Initializes a new API object

@param attrs [Hash] @return [GooglePlus::API]

# File lib/google_plus/api.rb, line 18
def initialize(attrs={})
  attrs = GooglePlus.options.merge(attrs)
  Config::VALID_OPTIONS_KEYS.each do |key|
    instance_variable_set("@#{key}".to_sym, attrs[key])
  end
end