Class: Google::Apis::AnalyticsV3::Account
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsV3::Account
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analytics_v3/classes.rb,
lib/google/apis/analytics_v3/representations.rb,
lib/google/apis/analytics_v3/representations.rb
Overview
JSON template for Analytics account entry.
Defined Under Namespace
Classes: ChildLink, Permissions
Instance Attribute Summary collapse
-
#child_link ⇒ Google::Apis::AnalyticsV3::Account::ChildLink
Child link for an account entry.
-
#created ⇒ DateTime
Time the account was created.
-
#id ⇒ String
Account ID.
-
#kind ⇒ String
Resource type for Analytics account.
-
#name ⇒ String
Account name.
-
#permissions ⇒ Google::Apis::AnalyticsV3::Account::Permissions
Permissions the user has for this account.
-
#self_link ⇒ String
Link for this account.
-
#starred ⇒ Boolean
(also: #starred?)
Indicates whether this account is starred or not.
-
#updated ⇒ DateTime
Time the account was last modified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account.
76 77 78 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 76 def initialize(**args) update!(**args) end |
Instance Attribute Details
#child_link ⇒ Google::Apis::AnalyticsV3::Account::ChildLink
Child link for an account entry. Points to the list of web properties for this
account.
Corresponds to the JSON property childLink
33 34 35 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 33 def child_link @child_link end |
#created ⇒ DateTime
Time the account was created.
Corresponds to the JSON property created
38 39 40 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 38 def created @created end |
#id ⇒ String
Account ID.
Corresponds to the JSON property id
43 44 45 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 43 def id @id end |
#kind ⇒ String
Resource type for Analytics account.
Corresponds to the JSON property kind
48 49 50 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 48 def kind @kind end |
#name ⇒ String
Account name.
Corresponds to the JSON property name
53 54 55 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 53 def name @name end |
#permissions ⇒ Google::Apis::AnalyticsV3::Account::Permissions
Permissions the user has for this account.
Corresponds to the JSON property permissions
58 59 60 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 58 def @permissions end |
#self_link ⇒ String
Link for this account.
Corresponds to the JSON property selfLink
63 64 65 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 63 def self_link @self_link end |
#starred ⇒ Boolean Also known as: starred?
Indicates whether this account is starred or not.
Corresponds to the JSON property starred
68 69 70 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 68 def starred @starred end |
#updated ⇒ DateTime
Time the account was last modified.
Corresponds to the JSON property updated
74 75 76 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 74 def updated @updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/google/apis/analytics_v3/classes.rb', line 81 def update!(**args) @child_link = args[:child_link] if args.key?(:child_link) @created = args[:created] if args.key?(:created) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @permissions = args[:permissions] if args.key?(:permissions) @self_link = args[:self_link] if args.key?(:self_link) @starred = args[:starred] if args.key?(:starred) @updated = args[:updated] if args.key?(:updated) end |