Class: GACli::Subcommand::Webproperties
- Defined in:
- lib/ga_shikomi/subcommand/webproperties.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#get ⇒ Object
{ “id”: “UA-xxxx-xx”, “websiteUrl”: “”, “permissions”: [] }.
-
#list ⇒ Object
- { “id”: “UA-xxxx-x”, “internalWebPropertyId”: xxxx, “permissions”: [
-
“websiteUrl”: “”, }].
Methods inherited from Base
Constructor Details
This class inherits a constructor from GACli::Subcommand::Base
Instance Method Details
#get ⇒ Object
"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 => ['account_id'], :webPropertyId => ['property_id'])] end |
#list ⇒ Object
[{
"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 => ["account_id"])['items'] end |