Method: Analytics::Profile#initialize

Defined in:
lib/analytics/profile.rb

#initialize(opts, access_token) ⇒ Profile

Returns a new instance of Profile.



5
6
7
8
9
10
11
12
# File 'lib/analytics/profile.rb', line 5

def initialize(opts, access_token)
  @access_token = access_token
  @name = opts.fetch("name")
  @id = opts.fetch("id")
  @url = opts.fetch("websiteUrl")
  @web_property_id = opts.fetch("webPropertyId")
  @account_id = opts.fetch("accountId")
end