Class: GAShikomi::Subcommand::Webproperties

Inherits:
Base
  • Object
show all
Defined in:
lib/ga_shikomi/subcommand/webproperties.rb

Instance Attribute Summary

Attributes inherited from Base

#api, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GAShikomi::Subcommand::Base

Instance Method Details

#getObject

"id": "UA-xxxx-xx",
"websiteUrl": "",
"permissions": []

return

Array



27
28
29
# File 'lib/ga_shikomi/subcommand/webproperties.rb', line 27

def get
  [api.execute(api.analytics.management.webproperties.get, :accountId => options['account_id'], :webPropertyId => options['property_id'])]
end

#listObject

[{

 "id": "UA-xxxx-x",
 "internalWebPropertyId": xxxx,
 "permissions": []
 "websiteUrl": "",
}]
return

Array



14
15
16
# File 'lib/ga_shikomi/subcommand/webproperties.rb', line 14

def list
  api.execute(api.analytics.management.webproperties.list, :accountId => options["account_id"])['items']
end