Class: Google::Apis::PlusDomainsV1::Activity::Object::StatusForViewer
- Inherits:
-
Object
- Object
- Google::Apis::PlusDomainsV1::Activity::Object::StatusForViewer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_v1/representations.rb
Overview
Status of the activity as seen by the viewer.
Instance Attribute Summary collapse
-
#can_comment ⇒ Boolean
(also: #can_comment?)
Whether the viewer can comment on the activity.
-
#can_plusone ⇒ Boolean
(also: #can_plusone?)
Whether the viewer can +1 the activity.
-
#can_update ⇒ Boolean
(also: #can_update?)
Whether the viewer can edit or delete the activity.
-
#is_plus_oned ⇒ Boolean
(also: #is_plus_oned?)
Whether the viewer has +1'd the activity.
-
#resharing_disabled ⇒ Boolean
(also: #resharing_disabled?)
Whether reshares are disabled for the activity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StatusForViewer
constructor
A new instance of StatusForViewer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StatusForViewer
Returns a new instance of StatusForViewer
950 951 952 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 950 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_comment ⇒ Boolean Also known as: can_comment?
Whether the viewer can comment on the activity.
Corresponds to the JSON property canComment
923 924 925 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 923 def can_comment @can_comment end |
#can_plusone ⇒ Boolean Also known as: can_plusone?
Whether the viewer can +1 the activity.
Corresponds to the JSON property canPlusone
929 930 931 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 929 def can_plusone @can_plusone end |
#can_update ⇒ Boolean Also known as: can_update?
Whether the viewer can edit or delete the activity.
Corresponds to the JSON property canUpdate
935 936 937 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 935 def can_update @can_update end |
#is_plus_oned ⇒ Boolean Also known as: is_plus_oned?
Whether the viewer has +1'd the activity.
Corresponds to the JSON property isPlusOned
941 942 943 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 941 def is_plus_oned @is_plus_oned end |
#resharing_disabled ⇒ Boolean Also known as: resharing_disabled?
Whether reshares are disabled for the activity.
Corresponds to the JSON property resharingDisabled
947 948 949 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 947 def resharing_disabled @resharing_disabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
955 956 957 958 959 960 961 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 955 def update!(**args) @can_comment = args[:can_comment] if args.key?(:can_comment) @can_plusone = args[:can_plusone] if args.key?(:can_plusone) @can_update = args[:can_update] if args.key?(:can_update) @is_plus_oned = args[:is_plus_oned] if args.key?(:is_plus_oned) @resharing_disabled = args[:resharing_disabled] if args.key?(:resharing_disabled) end |