Class: Google::Apis::PlusDomainsV1::Activity::Object::StatusForViewer

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_commentBoolean Also known as: can_comment?

Whether the viewer can comment on the activity. Corresponds to the JSON property canComment

Returns:

  • (Boolean)


923
924
925
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 923

def can_comment
  @can_comment
end

#can_plusoneBoolean Also known as: can_plusone?

Whether the viewer can +1 the activity. Corresponds to the JSON property canPlusone

Returns:

  • (Boolean)


929
930
931
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 929

def can_plusone
  @can_plusone
end

#can_updateBoolean Also known as: can_update?

Whether the viewer can edit or delete the activity. Corresponds to the JSON property canUpdate

Returns:

  • (Boolean)


935
936
937
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 935

def can_update
  @can_update
end

#is_plus_onedBoolean Also known as: is_plus_oned?

Whether the viewer has +1'd the activity. Corresponds to the JSON property isPlusOned

Returns:

  • (Boolean)


941
942
943
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 941

def is_plus_oned
  @is_plus_oned
end

#resharing_disabledBoolean Also known as: resharing_disabled?

Whether reshares are disabled for the activity. Corresponds to the JSON property resharingDisabled

Returns:

  • (Boolean)


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